Skip to content

Commit d20ac2c

Browse files
committed
Fix for TLS1.3 to 1.2 downgrade
1 parent 0397d90 commit d20ac2c

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/tls13.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5298,6 +5298,13 @@ int DoTls13ServerHello(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
52985298
return ret;
52995299
}
53005300
#endif /* WOLFSSL_DTLS13 */
5301+
5302+
#ifndef WOLFSSL_NO_TLS12
5303+
return DoServerHello(ssl, input, inOutIdx, helloSz);
5304+
#else
5305+
SendAlert(ssl, alert_fatal, wolfssl_alert_protocol_version);
5306+
return VERSION_ERROR;
5307+
#endif
53015308
}
53025309
}
53035310

0 commit comments

Comments
 (0)