TLS 1.3, HRR Cookie: send cookie back in new ClientHello

Make it mandatory that the cookie is sent back in new ClientHello when
seen in a HelloRetryRequest.
This commit is contained in:
Sean Parkinson
2024-01-31 07:26:25 +10:00
parent 3064d725b9
commit f48eb638da

View File

@@ -6479,7 +6479,7 @@ static int TLSX_Cookie_Parse(WOLFSSL* ssl, const byte* input, word16 length,
return BUFFER_E;
if (msgType == hello_retry_request)
return TLSX_Cookie_Use(ssl, input + idx, len, NULL, 0, 0,
return TLSX_Cookie_Use(ssl, input + idx, len, NULL, 0, 1,
&ssl->extensions);
/* client_hello */