fix: dtls13: send immediately post-handshake certificate request

This commit is contained in:
Marco Oliverio
2022-07-20 17:38:32 +02:00
committed by David Garske
parent 53dde1dafe
commit aca83b42d7

View File

@ -432,7 +432,9 @@ static int Dtls13SendNow(WOLFSSL* ssl, enum HandShakeType handshakeType)
if (handshakeType == client_hello || handshakeType == hello_retry_request ||
handshakeType == finished || handshakeType == session_ticket ||
handshakeType == session_ticket || handshakeType == key_update)
handshakeType == session_ticket || handshakeType == key_update ||
(handshakeType == certificate_request &&
ssl->options.handShakeState == HANDSHAKE_DONE))
return 1;
return 0;