From a2971f8d8e9c9496856b5296f7642ce1d30acff8 Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Mon, 25 Apr 2022 16:18:49 +0200 Subject: [PATCH] wolfSSL: Allow TLS version 1.3 to be disabled Signed-off-by: Juliusz Sosinowicz --- src/crypto/tls_wolfssl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/crypto/tls_wolfssl.c b/src/crypto/tls_wolfssl.c index c4dd87243..5dccfe6dd 100644 --- a/src/crypto/tls_wolfssl.c +++ b/src/crypto/tls_wolfssl.c @@ -1282,6 +1282,8 @@ static void tls_set_conn_flags(WOLFSSL *ssl, unsigned int flags) wolfSSL_set_options(ssl, SSL_OP_NO_TLSv1_1); if (flags & TLS_CONN_DISABLE_TLSv1_2) wolfSSL_set_options(ssl, SSL_OP_NO_TLSv1_2); + if (flags & TLS_CONN_DISABLE_TLSv1_3) + wolfSSL_set_options(ssl, SSL_OP_NO_TLSv1_3); }