mirror of
https://github.com/espressif/openthread.git
synced 2026-08-09 12:17:47 +00:00
[mbedtls] fix build failure by including crypto.h (#12297)
Replace the include of `<openthread/platform/memory.h>` with `<openthread/platform/crypto.h>` in the mbedTLS config header file. Recent PR #12290 introduced `otPlatCryptoCAlloc()` and `otPlatCryptoFree()` platform APIs and updated the mbedTLS config to use them. This commit ensures the correct header is included to prevent build errors regarding use of undeclared functions (e.g. "error: use of undeclared identifier 'otPlatCryptoCAlloc'").
This commit is contained in:
Vendored
+1
-1
@@ -38,7 +38,7 @@
|
||||
|
||||
#include <openthread/config.h>
|
||||
#include <openthread/platform/logging.h>
|
||||
#include <openthread/platform/memory.h>
|
||||
#include <openthread/platform/crypto.h>
|
||||
|
||||
#define MBEDTLS_PLATFORM_SNPRINTF_MACRO snprintf
|
||||
|
||||
|
||||
Reference in New Issue
Block a user