diff options
Diffstat (limited to 'src/daemon/https/tls/gnutls_mem.c')
-rw-r--r-- | src/daemon/https/tls/gnutls_mem.c | 13 |
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; | |||
32 | MHD_gnutls_realloc_function MHD_gnutls_realloc = realloc; | 32 | MHD_gnutls_realloc_function MHD_gnutls_realloc = realloc; |
33 | 33 | ||
34 | void *(*MHD_gnutls_calloc) (size_t, size_t) = calloc; | 34 | void *(*MHD_gnutls_calloc) (size_t, size_t) = calloc; |
35 | char *(*MHD_gnutls_strdup) (const char *) = MHD_gtls_strdup; | ||
36 | 35 | ||
37 | int | 36 | int |
38 | MHD__gnutls_is_secure_mem_null (const void *ign) | 37 | MHD__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 | |||
68 | char * | ||
69 | MHD_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 | } | ||