From d20ac2ce42d738c7ad4f77e57d97eb78987a936b Mon Sep 17 00:00:00 2001 From: Lealem Amedie Date: Wed, 5 Jun 2024 11:26:10 -0600 Subject: [PATCH] Fix for TLS1.3 to 1.2 downgrade --- src/tls13.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/tls13.c b/src/tls13.c index 34d314dd1..56de461f7 100644 --- a/src/tls13.c +++ b/src/tls13.c @@ -5298,6 +5298,13 @@ int DoTls13ServerHello(WOLFSSL* ssl, const byte* input, word32* inOutIdx, return ret; } #endif /* WOLFSSL_DTLS13 */ + +#ifndef WOLFSSL_NO_TLS12 + return DoServerHello(ssl, input, inOutIdx, helloSz); +#else + SendAlert(ssl, alert_fatal, wolfssl_alert_protocol_version); + return VERSION_ERROR; +#endif } }