diff options
Diffstat (limited to 'src/daemon/https/tls/gnutls_mem.c')
-rw-r--r-- | src/daemon/https/tls/gnutls_mem.c | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/src/daemon/https/tls/gnutls_mem.c b/src/daemon/https/tls/gnutls_mem.c index 1f0a743d..6f6086e5 100644 --- a/src/daemon/https/tls/gnutls_mem.c +++ b/src/daemon/https/tls/gnutls_mem.c | |||
@@ -44,27 +44,6 @@ int (*MHD__gnutls_is_secure_memory) (const void *) = | |||
44 | MHD__gnutls_is_secure_mem_null; | 44 | MHD__gnutls_is_secure_mem_null; |
45 | 45 | ||
46 | 46 | ||
47 | void * | ||
48 | MHD_gtls_calloc (size_t nmemb, size_t size) | ||
49 | { | ||
50 | void *ret; | ||
51 | size *= nmemb; | ||
52 | ret = MHD_gnutls_malloc (size); | ||
53 | if (ret != NULL) | ||
54 | memset (ret, 0, size); | ||
55 | return ret; | ||
56 | } | ||
57 | |||
58 | svoid * | ||
59 | MHD_gtls_secure_calloc (size_t nmemb, size_t size) | ||
60 | { | ||
61 | svoid *ret; | ||
62 | size *= nmemb; | ||
63 | ret = MHD_gnutls_secure_malloc (size); | ||
64 | if (ret != NULL) | ||
65 | memset (ret, 0, size); | ||
66 | return ret; | ||
67 | } | ||
68 | 47 | ||
69 | /* This realloc will free ptr in case realloc | 48 | /* This realloc will free ptr in case realloc |
70 | * fails. | 49 | * fails. |
@@ -97,39 +76,3 @@ MHD_gtls_strdup (const char *str) | |||
97 | memcpy (ret, str, siz); | 76 | memcpy (ret, str, siz); |
98 | return ret; | 77 | return ret; |
99 | } | 78 | } |
100 | |||
101 | |||
102 | #if 0 | ||
103 | /* don't use them. They are included for documentation. | ||
104 | */ | ||
105 | |||
106 | /** | ||
107 | * MHD_gnutls_malloc - Allocates and returns data | ||
108 | * | ||
109 | * This function will allocate 's' bytes data, and | ||
110 | * return a pointer to memory. This function is supposed | ||
111 | * to be used by callbacks. | ||
112 | * | ||
113 | * The allocation function used is the one set by MHD_gtls_global_set_mem_functions(). | ||
114 | * | ||
115 | **/ | ||
116 | void * | ||
117 | MHD_gnutls_malloc (size_t s) | ||
118 | { | ||
119 | } | ||
120 | |||
121 | /** | ||
122 | * MHD_gnutls_free - Returns a free() like function | ||
123 | * @d: pointer to memory | ||
124 | * | ||
125 | * This function will free data pointed by ptr. | ||
126 | * | ||
127 | * The deallocation function used is the one set by MHD_gtls_global_set_mem_functions(). | ||
128 | * | ||
129 | **/ | ||
130 | void | ||
131 | MHD_gnutls_free (void *ptr) | ||
132 | { | ||
133 | } | ||
134 | |||
135 | #endif | ||