summaryrefslogtreecommitdiff
path: root/lib/handshake-tls13.c
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2021-02-10 19:17:03 +0000
committerDaiki Ueno <ueno@gnu.org>2021-02-10 19:17:03 +0000
commit6a1028ca5c0dd106e34155d7e195f8895cff0a5a (patch)
treeb20b452511338d6f4a7b46cd8a76ce495ac4b61e /lib/handshake-tls13.c
parentd8cb3f2e88b45edf0ba5b9e2a17d3cd7a31ff723 (diff)
parent37e54a05221e076ba905d2d53fc7d885dc9e9ebc (diff)
downloadgnutls-6a1028ca5c0dd106e34155d7e195f8895cff0a5a.tar.gz
Merge branch 'wip/dueno/hrr-resumption' into 'master'
handshake: TLS 1.3: don't generate session ID in resumption mode See merge request gnutls/gnutls!1381
Diffstat (limited to 'lib/handshake-tls13.c')
-rw-r--r--lib/handshake-tls13.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/handshake-tls13.c b/lib/handshake-tls13.c
index ea236c803c..7dd42becf1 100644
--- a/lib/handshake-tls13.c
+++ b/lib/handshake-tls13.c
@@ -210,7 +210,7 @@ int _gnutls13_handshake_client(gnutls_session_t session)
SAVE_TRANSCRIPT;
- if (session->internals.resumed != RESUME_FALSE)
+ if (session->internals.resumed)
_gnutls_set_resumed_parameters(session);
return 0;
@@ -325,7 +325,7 @@ static int generate_hs_traffic_keys(gnutls_session_t session)
if ((session->security_parameters.entity == GNUTLS_CLIENT &&
(!(session->internals.hsk_flags & HSK_KEY_SHARE_RECEIVED) ||
(!(session->internals.hsk_flags & HSK_PSK_KE_MODE_DHE_PSK) &&
- session->internals.resumed != RESUME_FALSE))) ||
+ session->internals.resumed))) ||
(session->security_parameters.entity == GNUTLS_SERVER &&
!(session->internals.hsk_flags & HSK_KEY_SHARE_SENT))) {
@@ -506,7 +506,7 @@ int _gnutls13_handshake_server(gnutls_session_t session)
FALLTHROUGH;
case STATE109:
- if (session->internals.resumed != RESUME_FALSE)
+ if (session->internals.resumed)
_gnutls_set_resumed_parameters(session);
if (session->internals.hsk_flags & HSK_EARLY_START_USED) {