From 816fe38f3a168abd441917a8ec2fde16c2403748 Mon Sep 17 00:00:00 2001 From: Mahavir Jain Date: Tue, 19 Mar 2019 13:39:58 +0800 Subject: [PATCH] app_update: remove redundant (additional) check for signature verification Call `esp_image_verify` takes care of validating image signature. --- components/app_update/esp_ota_ops.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/components/app_update/esp_ota_ops.c b/components/app_update/esp_ota_ops.c index f7d2282e03..e800007f80 100644 --- a/components/app_update/esp_ota_ops.c +++ b/components/app_update/esp_ota_ops.c @@ -108,13 +108,6 @@ static esp_err_t image_validate(const esp_partition_t *partition, esp_image_load return ESP_ERR_OTA_VALIDATE_FAILED; } -#ifdef CONFIG_SECURE_SIGNED_ON_UPDATE - esp_err_t ret = esp_secure_boot_verify_signature(partition->address, data.image_len); - if (ret != ESP_OK) { - return ESP_ERR_OTA_VALIDATE_FAILED; - } -#endif - return ESP_OK; }