Merge pull request #15 from hmalpani/bugfix/fix_unused_variable
esp_encrypted_img: fix for unused variable error during build
This commit is contained in:
commit
bdd4088007
|
@ -1,4 +1,4 @@
|
||||||
version: "1.0.1"
|
version: "1.0.2"
|
||||||
description: ESP Encrypted Image Abstraction Layer
|
description: ESP Encrypted Image Abstraction Layer
|
||||||
url: https://github.com/espressif/idf-extra-components/tree/master/esp_encrypted_img
|
url: https://github.com/espressif/idf-extra-components/tree/master/esp_encrypted_img
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|
|
@ -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_len = args->data_in_len;
|
||||||
size_t data_out_size = args->data_out_len;
|
size_t data_out_size = args->data_out_len;
|
||||||
|
#if !(MBEDTLS_VERSION_NUMBER < 0x03000000)
|
||||||
size_t olen;
|
size_t olen;
|
||||||
|
#endif
|
||||||
handle->binary_file_read += data_len - curr_index;
|
handle->binary_file_read += data_len - curr_index;
|
||||||
int dec_len = 0;
|
int dec_len = 0;
|
||||||
if (handle->binary_file_read != handle->binary_file_len) {
|
if (handle->binary_file_read != handle->binary_file_len) {
|
||||||
|
|
Loading…
Reference in New Issue