mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
Merge pull request #5324 from julek-wolfssl/dtls13-hrr-fix
TLSX_COOKIE is only defined with WOLFSSL_SEND_HRR_COOKIE
This commit is contained in:
@ -10834,8 +10834,10 @@ int wolfSSL_accept_TLSv13(WOLFSSL* ssl)
|
|||||||
ssl->keys.dtls_handshake_number = 0;
|
ssl->keys.dtls_handshake_number = 0;
|
||||||
|
|
||||||
ssl->msgsReceived.got_client_hello = 0;
|
ssl->msgsReceived.got_client_hello = 0;
|
||||||
|
#ifdef WOLFSSL_SEND_HRR_COOKIE
|
||||||
/* Remove cookie so that it will get computed again */
|
/* Remove cookie so that it will get computed again */
|
||||||
TLSX_Remove(&ssl->extensions, TLSX_COOKIE, ssl->heap);
|
TLSX_Remove(&ssl->extensions, TLSX_COOKIE, ssl->heap);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Reset states */
|
/* Reset states */
|
||||||
ssl->options.serverState = NULL_STATE;
|
ssl->options.serverState = NULL_STATE;
|
||||||
|
Reference in New Issue
Block a user