From e8efc2997614ef0494cff0f3750dae285c274f32 Mon Sep 17 00:00:00 2001 From: Harshit Malpani Date: Thu, 24 Feb 2022 19:14:21 +0530 Subject: [PATCH] esp_encrypted_img: fix for unused variable error during build --- esp_encrypted_img/idf_component.yml | 2 +- esp_encrypted_img/src/esp_encrypted_img.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/esp_encrypted_img/idf_component.yml b/esp_encrypted_img/idf_component.yml index afc65c7..86f8397 100644 --- a/esp_encrypted_img/idf_component.yml +++ b/esp_encrypted_img/idf_component.yml @@ -1,4 +1,4 @@ -version: "1.0.1" +version: "1.0.2" description: ESP Encrypted Image Abstraction Layer url: https://github.com/espressif/idf-extra-components/tree/master/esp_encrypted_img dependencies: diff --git a/esp_encrypted_img/src/esp_encrypted_img.c b/esp_encrypted_img/src/esp_encrypted_img.c index 153cc95..6110cec 100644 --- a/esp_encrypted_img/src/esp_encrypted_img.c +++ b/esp_encrypted_img/src/esp_encrypted_img.c @@ -180,7 +180,9 @@ static esp_err_t process_bin(esp_encrypted_img_t *handle, pre_enc_decrypt_arg_t { size_t data_len = args->data_in_len; size_t data_out_size = args->data_out_len; +#if !(MBEDTLS_VERSION_NUMBER < 0x03000000) size_t olen; +#endif handle->binary_file_read += data_len - curr_index; int dec_len = 0; if (handle->binary_file_read != handle->binary_file_len) {