mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 04:04:39 +02:00
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:
@@ -6479,7 +6479,7 @@ static int TLSX_Cookie_Parse(WOLFSSL* ssl, const byte* input, word16 length,
|
|||||||
return BUFFER_E;
|
return BUFFER_E;
|
||||||
|
|
||||||
if (msgType == hello_retry_request)
|
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);
|
&ssl->extensions);
|
||||||
|
|
||||||
/* client_hello */
|
/* client_hello */
|
||||||
|
Reference in New Issue
Block a user