diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2002-06-09 10:13:56 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2002-06-09 10:13:56 +0000 |
commit | 3ad985f1ebcccfc7081817ce648d89e1da926615 (patch) | |
tree | e0808f8757607143ebedffc9e0402f9c1d713f19 /lib/gnutls_mem.h | |
parent | 27c0d00eb23c5d6c07551d94bfea2766101c909c (diff) | |
download | gnutls-3ad985f1ebcccfc7081817ce648d89e1da926615.tar.gz |
Added gnutls_b64_encode_fmt2() and gnutls_b64_decode_fmt2(). These functions return allocated data. Cleaned up the gnutls_datum code and some of memory stuff.
Diffstat (limited to 'lib/gnutls_mem.h')
-rw-r--r-- | lib/gnutls_mem.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/gnutls_mem.h b/lib/gnutls_mem.h index 88a255c182..5beba83b05 100644 --- a/lib/gnutls_mem.h +++ b/lib/gnutls_mem.h @@ -19,11 +19,17 @@ typedef void svoid; /* for functions that allocate using gnutls_secure_malloc */ # define gnutls_afree gnutls_free #endif /* HAVE_ALLOCA */ -extern void* (*gnutls_secure_malloc)(size_t); -extern void* (*gnutls_malloc)(size_t); -extern void (*gnutls_free)(void*); +typedef void* (*ALLOC_FUNC)(size_t); +typedef void (*FREE_FUNC)(void*); +typedef void* (*REALLOC_FUNC)(void*, size_t); + +extern ALLOC_FUNC gnutls_secure_malloc; +extern ALLOC_FUNC gnutls_malloc; +extern FREE_FUNC gnutls_free; + extern int (*_gnutls_is_secure_memory)(const void*); -extern void* (*gnutls_realloc)(void*, size_t); +extern REALLOC_FUNC gnutls_realloc; + extern void* (*gnutls_calloc)(size_t, size_t); extern char* (*gnutls_strdup)( const char*); |