diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/g10lib.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/include/g10lib.h b/include/g10lib.h index ee04b655c..aa2977825 100644 --- a/include/g10lib.h +++ b/include/g10lib.h @@ -41,7 +41,6 @@ /*-- gcrypt/global.c --*/ int set_lasterr( int ec ); - void *g10_malloc( size_t n ); void *g10_calloc( size_t n, size_t m ); void *g10_malloc_secure( size_t n ); @@ -59,7 +58,16 @@ void g10_free( void *p ); /*-- gcrypt/misc.c --*/ const char *g10_gettext( const char *key ); -int fatal_invalid_arg(const char *text); +void g10_fatal_error(int rc, const char *text ); + + +/*-- util/memory.c --*/ + +#define g10_private_malloc(n) m_alloc((n)) +#define g10_private_malloc_secure(n) m_alloc_secure((n)) +#define g10_private_is_secure(n) m_is_secure((n)) +#define g10_private_realloc(a,n) m_realloc((a),(n)) +#define g10_private_free(p) m_free((p)) /*-- cipher/pubkey.c --*/ |