]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wolfSSL: Allow TLS version 1.3 to be disabled
authorJuliusz Sosinowicz <juliusz@wolfssl.com>
Mon, 25 Apr 2022 14:18:49 +0000 (16:18 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 1 May 2022 14:26:59 +0000 (17:26 +0300)
Signed-off-by: Juliusz Sosinowicz <juliusz@wolfssl.com>
src/crypto/tls_wolfssl.c

index c4dd872433af51a33b51350568e9f55673a8ca89..5dccfe6dd164470cdadb2cd16da50cc5c725297f 100644 (file)
@@ -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);
 }