Adds a Kconfig option for mbedtls' MBEDTLS_PLATFORM_MEMORY define. This makes it possible to override the mbedtls allocator with your own.

Merges https://github.com/espressif/esp-idf/pull/2237
This commit is contained in:
Jason von Nieda
2018-07-27 12:03:01 -05:00
committed by Angus Gratton
parent 1c7a8b3b71
commit d7a17ac941
2 changed files with 19 additions and 1 deletions

View File

@@ -114,7 +114,9 @@
*
* Enable this layer to allow use of alternative memory allocators.
*/
//#define MBEDTLS_PLATFORM_MEMORY
#ifdef CONFIG_MBEDTLS_PLATFORM_MEMORY
#define MBEDTLS_PLATFORM_MEMORY
#endif
/**
* \def MBEDTLS_PLATFORM_NO_STD_FUNCTIONS