summaryrefslogtreecommitdiff
path: root/libtommath
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2018-03-02 00:02:06 +0800
committerMatt Johnston <matt@ucc.asn.au>2018-03-02 00:02:06 +0800
commite612aec5d9f25a7334d9e2981f1aabf12b889b64 (patch)
tree211d3a37054da7b583544353018acb64441703c5 /libtommath
parent5bd0c0d25aa4d15f6b034c015ef8ecd501947127 (diff)
downloaddropbear-e612aec5d9f25a7334d9e2981f1aabf12b889b64.tar.gz
Attempt to fix m_free for libtomcrypt/libtommath
Diffstat (limited to 'libtommath')
-rw-r--r--libtommath/tommath_class.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/libtommath/tommath_class.h b/libtommath/tommath_class.h
index bd7c39a..b9d9c0c 100644
--- a/libtommath/tommath_class.h
+++ b/libtommath/tommath_class.h
@@ -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