OTA over MQTT demo fix.

This commit is contained in:
Jason Carroll
2022-11-03 00:20:29 -07:00
parent 2b5bd79a53
commit 25025de10d
2 changed files with 4 additions and 4 deletions

View File

@@ -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;

View File

@@ -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