wolfSSL: Allow TLS version 1.3 to be disabled

Signed-off-by: Juliusz Sosinowicz <juliusz@wolfssl.com>
This commit is contained in:
Juliusz Sosinowicz 2022-04-25 16:18:49 +02:00 committed by Jouni Malinen
parent a40e48fbe1
commit a2971f8d8e

View 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);
}