summaryrefslogtreecommitdiff
path: root/lib/state.c
diff options
context:
space:
mode:
authorDaiki Ueno <dueno@redhat.com>2018-11-16 16:12:13 +0100
committerDaiki Ueno <dueno@redhat.com>2018-11-18 06:43:48 +0100
commit92dd7f62a42094cfe7177c7191c12711494c86a0 (patch)
tree25231b7678c2372112a29305c0cb267eca8526c2 /lib/state.c
parent5ad1afa2c65c1ce9d0946dbb835edf93ec6d0ead (diff)
downloadgnutls-92dd7f62a42094cfe7177c7191c12711494c86a0.tar.gz
tls13/session_ticket: fix "max_early_data_size" extension handling
session->security_parameters.max_early_data_size is initially set to 0. Signed-off-by: Daiki Ueno <dueno@redhat.com>
Diffstat (limited to 'lib/state.c')
-rw-r--r--lib/state.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/state.c b/lib/state.c
index 5364d5e727..7e6354f9fe 100644
--- a/lib/state.c
+++ b/lib/state.c
@@ -518,6 +518,9 @@ int gnutls_init(gnutls_session_t * session, unsigned int flags)
if ((*session)->security_parameters.entity == GNUTLS_SERVER) {
(*session)->security_parameters.max_early_data_size =
DEFAULT_MAX_EARLY_DATA_SIZE;
+ } else {
+ (*session)->security_parameters.max_early_data_size =
+ UINT32_MAX;
}
/* everything else not initialized here is initialized