forked from espressif/esp-idf
secure_boot_v1: Adds a help message in case when sig_block.version is not valid
if sig_block.version is not valid then probably the image without a signature.
This commit is contained in:
@@ -79,7 +79,7 @@ esp_err_t esp_secure_boot_verify_ecdsa_signature_block(const esp_secure_boot_sig
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (sig_block->version != 0) {
|
if (sig_block->version != 0) {
|
||||||
ESP_LOGE(TAG, "image has invalid signature version field 0x%08x", sig_block->version);
|
ESP_LOGE(TAG, "image has invalid signature version field 0x%08x (image without a signature?)", sig_block->version);
|
||||||
return ESP_FAIL;
|
return ESP_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -79,7 +79,7 @@ esp_err_t esp_secure_boot_verify_ecdsa_signature_block(const esp_secure_boot_sig
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (sig_block->version != 0) {
|
if (sig_block->version != 0) {
|
||||||
ESP_LOGE(TAG, "image has invalid signature version field 0x%08x", sig_block->version);
|
ESP_LOGE(TAG, "image has invalid signature version field 0x%08x (image without a signature?)", sig_block->version);
|
||||||
return ESP_FAIL;
|
return ESP_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user