summaryrefslogtreecommitdiff
path: root/lib/gnutls_int.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2016-03-31 09:40:09 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2016-03-31 13:28:49 +0200
commitbce688e262be66af47a92b9344819fcbe0520d39 (patch)
tree4c531f25db8e82d7e45c0868551b434c48999cd2 /lib/gnutls_int.h
parent08f071f3797a946d5ee653941d1a82d5063b450f (diff)
downloadgnutls-bce688e262be66af47a92b9344819fcbe0520d39.tar.gz
session resumption: lift the limitation of calling gnutls_session_get_data*() on non-resumed sessions
This allows of obtaining the session data required for proper session resumption from any available session. This brings the API in par with expectations of its users. Resolves #79
Diffstat (limited to 'lib/gnutls_int.h')
-rw-r--r--lib/gnutls_int.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gnutls_int.h b/lib/gnutls_int.h
index cae3352097..484bea6edd 100644
--- a/lib/gnutls_int.h
+++ b/lib/gnutls_int.h
@@ -789,6 +789,7 @@ typedef struct {
bool resumed; /* RESUME_TRUE or FALSE - if we are resuming a session */
bool resumption_requested; /* non-zero if resumption was requested by client */
security_parameters_st resumed_security_parameters;
+ gnutls_datum_t resumption_data; /* copy of input to gnutls_session_set_data() */
/* These buffers are used in the handshake
* protocol only. freed using _gnutls_handshake_io_buffer_clear();