Mercurial > dropbear
diff libtommath/tommath_class.h @ 1571:d4efb7801fcd
Attempt to fix m_free for libtomcrypt/libtommath
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 02 Mar 2018 00:02:06 +0800 |
parents | 5916af64acd4 |
children | f52919ffd3b1 |
line wrap: on
line diff
--- a/libtommath/tommath_class.h Thu Mar 01 23:47:46 2018 +0800 +++ b/libtommath/tommath_class.h Fri Mar 02 00:02:06 2018 +0800 @@ -1062,12 +1062,7 @@ #undef BN_MP_TOOM_MUL_C #undef BN_MP_TOOM_SQR_C -void * m_malloc(size_t size); -/* m_calloc is limited in size, enough for libtomcrypt */ -void * m_calloc(size_t nmemb, size_t size); -void * m_realloc(void* ptr, size_t size); -void m_free_direct(void* ptr); - +#include "dbmalloc.h" #define XMALLOC m_malloc #define XFREE m_free_direct #define XREALLOC m_realloc