summaryrefslogtreecommitdiff
path: root/lib/gnutls_mem.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2001-11-10 21:37:13 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2001-11-10 21:37:13 +0000
commit7d28c069875e58a0a6640684a379fe6d2aaf69b6 (patch)
treea2a01fdffbf4495fccd17a16f442d128e0bfe0cf /lib/gnutls_mem.c
parentd4b8f2c7eea4246a6e2d1dee4118f0bd8ebd20e6 (diff)
downloadgnutls-7d28c069875e58a0a6640684a379fe6d2aaf69b6.tar.gz
several fixes.
Including: - max_record_header extension. - resume handshake sending wrong ssl version - Non blocking IO (not ready yet)
Diffstat (limited to 'lib/gnutls_mem.c')
-rw-r--r--lib/gnutls_mem.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/gnutls_mem.c b/lib/gnutls_mem.c
index 9cde853528..6ed871a93f 100644
--- a/lib/gnutls_mem.c
+++ b/lib/gnutls_mem.c
@@ -105,6 +105,9 @@ void *gnutls_realloc(void *_ptr, size_t size)
return ret;
}
+/* This realloc only returns a new pointer if you
+ * request more data than the data into the pointer.
+ */
void *gnutls_realloc_fast(void *ptr, size_t size)
{
@@ -117,7 +120,6 @@ void *gnutls_realloc_fast(void *ptr, size_t size)
return gnutls_realloc(ptr, size);
}
-
void gnutls_free(void *_ptr)
{
opaque *ptr = _ptr;
@@ -205,3 +207,4 @@ char *gnutls_strdup(const char *s)
return ret;
}
#endif /* USE_DMALLOC */
+