mirror of https://github.com/wolfSSL/wolfssl.git
Merge pull request #7840 from mrdeep1/dtls_downgrade
Support DTLS1.3 downgrade when server sends multiple handshakes in packetpull/7858/head
commit
d351430222
|
@ -13086,6 +13086,14 @@ int wolfSSL_connect_TLSv13(WOLFSSL* ssl)
|
||||||
case HELLO_AGAIN_REPLY:
|
case HELLO_AGAIN_REPLY:
|
||||||
/* Get the response/s from the server. */
|
/* Get the response/s from the server. */
|
||||||
while (ssl->options.serverState < SERVER_FINISHED_COMPLETE) {
|
while (ssl->options.serverState < SERVER_FINISHED_COMPLETE) {
|
||||||
|
#ifdef WOLFSSL_DTLS13
|
||||||
|
if (!IsAtLeastTLSv1_3(ssl->version)) {
|
||||||
|
#ifndef WOLFSSL_NO_TLS12
|
||||||
|
if (ssl->options.downgrade)
|
||||||
|
return wolfSSL_connect(ssl);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
#endif /* WOLFSSL_DTLS13 */
|
||||||
if ((ssl->error = ProcessReply(ssl)) < 0) {
|
if ((ssl->error = ProcessReply(ssl)) < 0) {
|
||||||
WOLFSSL_ERROR(ssl->error);
|
WOLFSSL_ERROR(ssl->error);
|
||||||
return WOLFSSL_FATAL_ERROR;
|
return WOLFSSL_FATAL_ERROR;
|
||||||
|
|
Loading…
Reference in New Issue