summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2005-11-30 12:01:45 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2005-11-30 12:01:45 +0000
commitbd6a8bd6903c2cabfbf198426ee0c7bab0bf3ddf (patch)
treee1b87b6a521147eaaff091565b53493ecfac1644 /includes
parent8f32a3b7512c44b4aa09386ff24f5fd9c9393b4a (diff)
downloadgnutls-bd6a8bd6903c2cabfbf198426ee0c7bab0bf3ddf.tar.gz
Some fixes in session resumption and prototypes. Based on patches and suggestions by Joe Orton.
Diffstat (limited to 'includes')
-rw-r--r--includes/gnutls/gnutls.h.in12
1 files changed, 7 insertions, 5 deletions
diff --git a/includes/gnutls/gnutls.h.in b/includes/gnutls/gnutls.h.in
index b10eec05ed..8b60c19655 100644
--- a/includes/gnutls/gnutls.h.in
+++ b/includes/gnutls/gnutls.h.in
@@ -326,6 +326,8 @@ const char *gnutls_protocol_get_name(gnutls_protocol_t version);
*/
int gnutls_session_set_data( gnutls_session_t session, const void* session_data, size_t session_data_size);
int gnutls_session_get_data( gnutls_session_t session, void* session_data, size_t *session_data_size);
+int gnutls_session_get_data2( gnutls_session_t session, gnutls_datum* data);
+
/* returns the session ID */
#define GNUTLS_MAX_SESSION_ID 32
int gnutls_session_get_id( gnutls_session_t session, void* session_id, size_t *session_id_size);
@@ -450,11 +452,11 @@ typedef void (*gnutls_free_function)(void*);
typedef void* (*gnutls_realloc_function)(void*, size_t);
extern void
-gnutls_global_set_mem_functions(gnutls_alloc_function alloc_func,
- gnutls_alloc_function secure_alloc_func,
- gnutls_is_secure_function is_secure_func,
- gnutls_realloc_function realloc_func,
- gnutls_free_function free_func);
+gnutls_global_set_mem_functions(gnutls_alloc_function gt_alloc_func,
+ gnutls_alloc_function gt_secure_alloc_func,
+ gnutls_is_secure_function gt_is_secure_func,
+ gnutls_realloc_function gt_realloc_func,
+ gnutls_free_function gt_free_func);
/* For use in callbacks */
extern gnutls_alloc_function gnutls_malloc;