26 #if !defined(POLARSSL_CONFIG_FILE) 29 #include POLARSSL_CONFIG_FILE 32 #if defined(POLARSSL_PLATFORM_C) 36 #if defined(POLARSSL_PLATFORM_MEMORY) 37 #if !defined(POLARSSL_PLATFORM_STD_MALLOC) 38 static void *platform_malloc_uninit(
size_t len )
44 #define POLARSSL_PLATFORM_STD_MALLOC platform_malloc_uninit 47 #if !defined(POLARSSL_PLATFORM_STD_FREE) 48 static void platform_free_uninit(
void *ptr )
53 #define POLARSSL_PLATFORM_STD_FREE platform_free_uninit 59 int platform_set_malloc_free(
void * (*malloc_func)(
size_t ),
60 void (*free_func)(
void * ) )
68 #if defined(POLARSSL_PLATFORM_PRINTF_ALT) 69 #if !defined(POLARSSL_PLATFORM_STD_PRINTF) 73 static int platform_printf_uninit(
const char *format, ... )
79 #define POLARSSL_PLATFORM_STD_PRINTF platform_printf_uninit 84 int platform_set_printf(
int (*printf_func)(
const char *, ... ) )
91 #if defined(POLARSSL_PLATFORM_FPRINTF_ALT) 92 #if !defined(POLARSSL_PLATFORM_STD_FPRINTF) 96 static int platform_fprintf_uninit( FILE *stream,
const char *format, ... )
103 #define POLARSSL_PLATFORM_STD_FPRINTF platform_fprintf_uninit 109 int platform_set_fprintf(
int (*fprintf_func)( FILE *,
const char *, ... ) )
Configuration options (set of defines)