From ca5b1dbbcb7e8f2cd8eb406637bfed7e4e93fb0b Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Fri, 26 Jan 2018 14:18:36 -0700 Subject: [PATCH] set have session id flag --- src/tls13.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tls13.c b/src/tls13.c index b11b9263f..d0856efb0 100644 --- a/src/tls13.c +++ b/src/tls13.c @@ -2687,6 +2687,7 @@ int DoTls13ServerHello(WOLFSSL* ssl, const byte* input, word32* inOutIdx, } #endif /* WOLFSSL_TLS13_MIDDLEBOX_COMPAT */ i += sessIdSz; + ssl->options.haveSessionId = 1; #endif /* WOLFSSL_TLS13_DRAFT_18 */ #ifdef WOLFSSL_TLS13_DRAFT_18 @@ -3634,6 +3635,7 @@ int DoTls13ClientHello(WOLFSSL* ssl, const byte* input, word32* inOutIdx, *inOutIdx = i; ssl->options.clientState = CLIENT_HELLO_COMPLETE; + ssl->options.haveSessionId = 1; WOLFSSL_LEAVE("DoTls13ClientHello", ret);