Attempt to fix m_free for libtomcrypt/libtommath

This commit is contained in:
Matt Johnston
2018-03-02 00:02:06 +08:00
parent 5bd0c0d25a
commit e612aec5d9
3 changed files with 8 additions and 16 deletions

View File

@@ -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