blob: fbe0375cc61bd5d82e9ed482814c5f2352d98a19 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#ifdef USE_DMALLOC
# include <dmalloc.h>
#endif
typedef void svoid; /* for functions that allocate using secure_free */
#ifdef USE_DMALLOC
# define gnutls_malloc malloc
# define gnutls_realloc realloc
# define gnutls_realloc_fast realloc
# define gnutls_free free
# define gnutls_calloc calloc
# define secure_malloc malloc
# define secure_realloc realloc
# define secure_free free
# define secure_calloc calloc
# define gnutls_strdup strdup
int _gnutls_is_secure_memory(const void*);
#else
svoid* secure_malloc( size_t size);
svoid* secure_calloc( size_t nmemb, size_t size);
size_t _secure_ptr_size( svoid* ptr);
svoid* secure_realloc( svoid* ptr, size_t size);
void secure_free( svoid* ptr);
int _gnutls_is_secure_memory(const svoid* mem);
void* gnutls_malloc( size_t size);
void* gnutls_calloc( size_t nmemb, size_t size);
size_t _gnutls_malloc_ptr_size( void* ptr);
void* gnutls_realloc( void* ptr, size_t size);
void* gnutls_realloc_fast( void* ptr, size_t size);
void gnutls_free( void* ptr);
char* gnutls_strdup( const char* s);
#endif
|