From 25025de10db1e347af7ed5cb899e9848dd28fdfa Mon Sep 17 00:00:00 2001 From: Jason Carroll Date: Thu, 3 Nov 2022 00:20:29 -0700 Subject: [PATCH] OTA over MQTT demo fix. --- .../code_signature_verification_mbedtls.c | 6 +++--- .../WindowsSimulator/FreeRTOS-Kernel/FreeRTOSConfig.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/FreeRTOS-Plus/Demo/AWS/Ota_Windows_Simulator/Common/Ota_PAL/Win32/Code_Signature_Verification/code_signature_verification_mbedtls.c b/FreeRTOS-Plus/Demo/AWS/Ota_Windows_Simulator/Common/Ota_PAL/Win32/Code_Signature_Verification/code_signature_verification_mbedtls.c index bd684154e6..1573191848 100644 --- a/FreeRTOS-Plus/Demo/AWS/Ota_Windows_Simulator/Common/Ota_PAL/Win32/Code_Signature_Verification/code_signature_verification_mbedtls.c +++ b/FreeRTOS-Plus/Demo/AWS/Ota_Windows_Simulator/Common/Ota_PAL/Win32/Code_Signature_Verification/code_signature_verification_mbedtls.c @@ -313,7 +313,7 @@ static BaseType_t prvSignatureVerificationStart(void** ppvContext, * Initialize the requested hash type */ mbedtls_sha256_init(&pxCtx->xSHA256Context); - (void)mbedtls_sha256_starts_ret(&pxCtx->xSHA256Context, 0); + (void)mbedtls_sha256_starts(&pxCtx->xSHA256Context, 0); } return xResult; @@ -331,7 +331,7 @@ static void prvSignatureVerificationUpdate(void* pvContext, /* * Add the data to the hash of the requested type */ - (void)mbedtls_sha256_update_ret(&pxCtx->xSHA256Context, pucData, xDataLength); + (void)mbedtls_sha256_update(&pxCtx->xSHA256Context, pucData, xDataLength); } @@ -361,7 +361,7 @@ static BaseType_t prvSignatureVerificationFinal(void* pvContext, /* * Finish the hash. */ - (void)mbedtls_sha256_finish_ret(&pxCtx->xSHA256Context, ucSHA256); + (void)mbedtls_sha256_finish(&pxCtx->xSHA256Context, ucSHA256); pucHash = ucSHA256; xHashLength = SHA256_DIGEST_BYTES; diff --git a/FreeRTOS-Plus/WindowsSimulator/FreeRTOS-Kernel/FreeRTOSConfig.h b/FreeRTOS-Plus/WindowsSimulator/FreeRTOS-Kernel/FreeRTOSConfig.h index 6d00e2b6ab..7cb03340b6 100644 --- a/FreeRTOS-Plus/WindowsSimulator/FreeRTOS-Kernel/FreeRTOSConfig.h +++ b/FreeRTOS-Plus/WindowsSimulator/FreeRTOS-Kernel/FreeRTOSConfig.h @@ -61,7 +61,7 @@ #define configUSE_ALTERNATIVE_API 0 #define configNUM_THREAD_LOCAL_STORAGE_POINTERS 8 #define configENABLE_BACKWARD_COMPATIBILITY 1 -#define configSUPPORT_STATIC_ALLOCATION 0 +#define configSUPPORT_STATIC_ALLOCATION 1 /* Hook function related definitions. */ #define configUSE_TICK_HOOK 0