diff libtomcrypt/src/headers/tomcrypt_custom.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 1ff2a1034c52
line wrap: on
line diff
--- a/libtomcrypt/src/headers/tomcrypt_custom.h	Thu Mar 01 23:47:46 2018 +0800
+++ b/libtomcrypt/src/headers/tomcrypt_custom.h	Fri Mar 02 00:02:06 2018 +0800
@@ -12,12 +12,7 @@
 
 #include "tomcrypt_dropbear.h"
 
-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