summaryrefslogtreecommitdiff
path: root/lib/gnutls_int.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2019-02-25 14:35:16 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2019-03-02 21:15:26 +0100
commit2db896b7fd3258851898652e9ddef7335f23e450 (patch)
treeb71baa9067348e4c11c37d3db3b2605a33b6a34f /lib/gnutls_int.h
parente53bd8ed2010cc061a9d36cfc36cf8d076894ee1 (diff)
downloadgnutls-2db896b7fd3258851898652e9ddef7335f23e450.tar.gz
Protected _gnutls_epoch_get from _gnutls_epoch_gc on false start
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/gnutls_int.h')
-rw-r--r--lib/gnutls_int.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gnutls_int.h b/lib/gnutls_int.h
index a340d3747d..4547ead0a4 100644
--- a/lib/gnutls_int.h
+++ b/lib/gnutls_int.h
@@ -1469,6 +1469,10 @@ typedef struct {
/* anti-replay measure for 0-RTT mode */
gnutls_anti_replay_t anti_replay;
+ /* Protects _gnutls_epoch_gc() from _gnutls_epoch_get(); these may be
+ * called in parallel when false start is used and false start is used. */
+ void *epoch_lock;
+
/* If you add anything here, check _gnutls_handshake_internal_state_clear().
*/
} internals_st;