Index: src/platform/vboot_reference/tests/firmware_rollback_tests.c |
diff --git a/src/platform/vboot_reference/tests/firmware_rollback_tests.c b/src/platform/vboot_reference/tests/firmware_rollback_tests.c |
index e36c003a28d1df3cd0350ace194ce1aac9311513..9973ec7305544fbc6e44468e0c1933b05e2ab56a 100644 |
--- a/src/platform/vboot_reference/tests/firmware_rollback_tests.c |
+++ b/src/platform/vboot_reference/tests/firmware_rollback_tests.c |
@@ -15,6 +15,8 @@ |
#include "rollback_index.h" |
#include "test_common.h" |
+const char* kRootKeyPublicFile = "testkeys/key_rsa8192.keyb"; |
+ |
/* Tests that check for correctness of the VerifyFirmwareDriver_f() logic |
* and rollback prevention. */ |
void VerifyFirmwareDriverTest(void) { |
@@ -23,8 +25,7 @@ void VerifyFirmwareDriverTest(void) { |
uint8_t* corrupt_firmwareA = NULL; |
uint8_t* corrupt_firmwareB = NULL; |
uint64_t len; |
- uint8_t* root_key_pub = BufferFromFile("testkeys/key_rsa8192.keyb", |
- &len); |
+ uint8_t* root_key_pub = BufferFromFile(kRootKeyPublicFile, &len); |
/* Initialize rollback index state. */ |
g_firmware_key_version = 1; |