From 7fc58eb5db904f5f2de2873ab1d5e35ca157ad7e Mon Sep 17 00:00:00 2001 From: Jochen Hoenicke Date: Tue, 27 Mar 2018 01:58:30 +0200 Subject: [PATCH] bootloader: signatures_ok must work without magic signatures_ok is called before the magic is written to the flash to determine whether the metadata should be written back. --- bootloader/signatures.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/bootloader/signatures.c b/bootloader/signatures.c index 9f9e540f6..e178ecec7 100644 --- a/bootloader/signatures.c +++ b/bootloader/signatures.c @@ -40,8 +40,6 @@ static const uint8_t * const pubkey[PUBKEYS] = { int signatures_ok(uint8_t *store_hash) { - if (!firmware_present()) return SIG_FAIL; // no firmware present - const uint32_t codelen = *((const uint32_t *)FLASH_META_CODELEN); const uint8_t sigindex1 = *((const uint8_t *)FLASH_META_SIGINDEX1); const uint8_t sigindex2 = *((const uint8_t *)FLASH_META_SIGINDEX2);