comparison libtomcrypt/src/headers/tomcrypt_custom.h @ 1361:f9f930e1a516 fuzz

add dbmalloc epoch cleanup
author Matt Johnston <matt@ucc.asn.au>
date Sun, 21 May 2017 10:54:11 +0800
parents 3017bc7d6238
children 871b18fd7065
comparison
equal deleted inserted replaced
1360:16f45f2df38f 1361:f9f930e1a516
1 #ifndef TOMCRYPT_CUSTOM_H_ 1 #ifndef TOMCRYPT_CUSTOM_H_
2 #define TOMCRYPT_CUSTOM_H_ 2 #define TOMCRYPT_CUSTOM_H_
3 3
4 /* compile options depend on Dropbear options.h */ 4 /* compile options depend on Dropbear options.h */
5 #include "options.h" 5 #include "options.h"
6
7 void * m_malloc(size_t size);
8 /* m_calloc is limited in size, enough for libtomcrypt */
9 void * m_calloc(size_t nmemb, size_t size);
10 void * m_realloc(void* ptr, size_t size);
11 void m_free_direct(void* ptr);
12
13 #define XMALLOC m_malloc
14 #define XFREE m_free_direct
15 #define XREALLOC m_realloc
16 #define XCALLOC m_calloc
6 17
7 /* macros for various libc functions you can change for embedded targets */ 18 /* macros for various libc functions you can change for embedded targets */
8 #ifndef XMALLOC 19 #ifndef XMALLOC
9 #ifdef malloc 20 #ifdef malloc
10 #define LTC_NO_PROTOTYPES 21 #define LTC_NO_PROTOTYPES