gnutls_mem.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef GNUTLS_MEM_H
00026 # define GNUTLS_MEM_H
00027
00028 #ifdef USE_DMALLOC
00029 # include <dmalloc.h>
00030 #endif
00031
00032 typedef void svoid;
00033
00034 #ifdef HAVE_ALLOCA
00035 # ifdef HAVE_ALLOCA_H
00036 # include <alloca.h>
00037 # endif
00038 # ifndef MHD_gnutls_alloca
00039 # define MHD_gnutls_alloca alloca
00040 # define MHD_gnutls_afree(x)
00041 # endif
00042 #else
00043 # ifndef MHD_gnutls_alloca
00044 # define MHD_gnutls_alloca MHD_gnutls_malloc
00045 # define MHD_gnutls_afree MHD_gnutls_free
00046 # endif
00047 #endif
00048
00049 extern int (*MHD__gnutls_is_secure_memory) (const void *);
00050
00051
00052
00053
00054 void *MHD_gtls_realloc_fast (void *ptr, size_t size);
00055
00056 svoid *MHD_gtls_secure_calloc (size_t nmemb, size_t size);
00057
00058 void *MHD_gtls_calloc (size_t nmemb, size_t size);
00059 char *MHD_gtls_strdup (const char *);
00060
00061 #endif