summaryrefslogtreecommitdiff
path: root/lib/constate.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2018-04-17 10:59:25 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2018-04-18 16:17:44 +0200
commit2bc0a7f5cc4c203d3ad11e0b73c77986ffa5bf28 (patch)
treebe8121c87b8e6e5a98751a9a4b1f837d377ffb18 /lib/constate.h
parentdfc40f1250228278ec4c0d1d5bc29d396605b535 (diff)
downloadgnutls-2bc0a7f5cc4c203d3ad11e0b73c77986ffa5bf28.tar.gz
_gnutls_epoch_new: allow re-allocation epoch next epochtmp-constate-fix
On certain cases when re-handshake is interrupted by application data, _gnutls_epoch_new() will be called twice. Make sure that this does not lead to an error. We also rename the function to clarify its purpose _gnutls_epoch_setup_next(). Resolves #426 Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/constate.h')
-rw-r--r--lib/constate.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/constate.h b/lib/constate.h
index 934cd3bba5..1d62edccfa 100644
--- a/lib/constate.h
+++ b/lib/constate.h
@@ -38,7 +38,7 @@ int _gnutls_epoch_dup(gnutls_session_t session);
int _gnutls_epoch_get(gnutls_session_t session, unsigned int epoch_rel,
record_parameters_st ** params_out);
-int _gnutls_epoch_new(gnutls_session_t session, unsigned null_epoch, record_parameters_st **newp);
+int _gnutls_epoch_setup_next(gnutls_session_t session, unsigned null_epoch, record_parameters_st **newp);
void _gnutls_epoch_gc(gnutls_session_t session);
void _gnutls_epoch_free(gnutls_session_t session,
record_parameters_st * state);