28 #if defined(POLARSSL_MEMORY_C)
32 #if !defined(POLARSSL_MEMORY_STDMALLOC)
33 static void *memory_malloc_uninit(
size_t len )
39 #define POLARSSL_MEMORY_STDMALLOC memory_malloc_uninit
42 #if !defined(POLARSSL_MEMORY_STDFREE)
43 static void memory_free_uninit(
void *ptr )
48 #define POLARSSL_MEMORY_STDFREE memory_free_uninit
55 void (*free_func)(
void * ) )
void *(* polarssl_malloc)(size_t len)
Configuration options (set of defines)
#define POLARSSL_MEMORY_STDFREE
Default free to use, can be undefined.
void(* polarssl_free)(void *ptr)
#define POLARSSL_MEMORY_STDMALLOC
Default allocator to use, can be undefined.
int memory_set_own(void *(*malloc_func)(size_t), void(*free_func)(void *))
Set your own memory implementation function pointers.