aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/https/tls/gnutls_mem.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/https/tls/gnutls_mem.c')
-rw-r--r--src/daemon/https/tls/gnutls_mem.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/daemon/https/tls/gnutls_mem.c b/src/daemon/https/tls/gnutls_mem.c
index 6f6086e5..44f1ccf5 100644
--- a/src/daemon/https/tls/gnutls_mem.c
+++ b/src/daemon/https/tls/gnutls_mem.c
@@ -32,7 +32,6 @@ MHD_gnutls_free_function MHD_gnutls_free = free;
32MHD_gnutls_realloc_function MHD_gnutls_realloc = realloc; 32MHD_gnutls_realloc_function MHD_gnutls_realloc = realloc;
33 33
34void *(*MHD_gnutls_calloc) (size_t, size_t) = calloc; 34void *(*MHD_gnutls_calloc) (size_t, size_t) = calloc;
35char *(*MHD_gnutls_strdup) (const char *) = MHD_gtls_strdup;
36 35
37int 36int
38MHD__gnutls_is_secure_mem_null (const void *ign) 37MHD__gnutls_is_secure_mem_null (const void *ign)
@@ -64,15 +63,3 @@ MHD_gtls_realloc_fast (void *ptr, size_t size)
64 63
65 return ret; 64 return ret;
66} 65}
67
68char *
69MHD_gtls_strdup (const char *str)
70{
71 size_t siz = strlen (str) + 1;
72 char *ret;
73
74 ret = MHD_gnutls_malloc (siz);
75 if (ret != NULL)
76 memcpy (ret, str, siz);
77 return ret;
78}