[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:
Abtin Keshavarzian
2026-01-15 07:38:48 -08:00
committed by GitHub
parent 8406751ecb
commit e3b565cc40
+1 -1
View File
@@ -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