mirror of
https://github.com/espressif/openthread.git
synced 2026-10-03 06:17:41 +00:00
[crypto-platform] fix build issue with mbedtls v3.5.0 (#9492)
As per the mbedTLS v3.5.0 release notes: Ref: https://github.com/Mbed-TLS/mbedtls/releases/tag/mbedtls-3.5.0 MBEDTLS_CIPHER_BLKSIZE_MAX is deprecated in favor of MBEDTLS_MAX_BLOCK_LENGTH (if you intended what the name suggests: maximum size of any supported block cipher) or the new name MBEDTLS_CMAC_MAX_BLOCK_SIZE (if you intended the actual semantics: maximum size of a block cipher supported by the CMAC module). This commit fixes the build issue keeping the backward compatibility intact.
This commit is contained in:
Vendored
+6
@@ -144,6 +144,12 @@
|
||||
#include MBEDTLS_USER_CONFIG_FILE
|
||||
#endif
|
||||
|
||||
#include "mbedtls/version.h"
|
||||
// Include in the legacy config name adjustment file for mbedtls >= 3.5.0
|
||||
#if (MBEDTLS_VERSION_NUMBER >= 0x03050000)
|
||||
#include "mbedtls/config_adjust_legacy_crypto.h"
|
||||
#endif
|
||||
|
||||
#include "mbedtls/check_config.h"
|
||||
|
||||
#endif /* MBEDTLS_CONFIG_H */
|
||||
|
||||
Reference in New Issue
Block a user