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:
KonstantinKondrashov 2021-03-25 20:01:52 +08:00
parent aff0235e47
commit cbbd1e88a5
2 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ esp_err_t esp_secure_boot_verify_ecdsa_signature_block(const esp_secure_boot_sig
}
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;
}

View File

@ -79,7 +79,7 @@ esp_err_t esp_secure_boot_verify_ecdsa_signature_block(const esp_secure_boot_sig
}
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;
}