app_update: Don't double-verify secure boot signature during OTA
esp_image_load() already verifies the signature
This commit is contained in:
parent
57b601ab7f
commit
5cbc4e976b
|
@ -240,14 +240,6 @@ esp_err_t esp_ota_end(esp_ota_handle_t handle)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_SECURE_BOOT_ENABLED
|
|
||||||
ret = esp_secure_boot_verify_signature(it->part->address, data.image_len);
|
|
||||||
if (ret != ESP_OK) {
|
|
||||||
ret = ESP_ERR_OTA_VALIDATE_FAILED;
|
|
||||||
goto cleanup;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
LIST_REMOVE(it, entries);
|
LIST_REMOVE(it, entries);
|
||||||
free(it);
|
free(it);
|
||||||
|
|
Loading…
Reference in a new issue