Skip to content

Commit 6cd8676

Browse files
Disable TLS 1.3 with Mbed TLS
1 parent 5885ab4 commit 6cd8676

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/impl/tlstransport.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ TlsTransport::TlsTransport(variant<shared_ptr<TcpTransport>, shared_ptr<HttpProx
336336
&mConf, mIsClient ? MBEDTLS_SSL_IS_CLIENT : MBEDTLS_SSL_IS_SERVER,
337337
MBEDTLS_SSL_TRANSPORT_STREAM, MBEDTLS_SSL_PRESET_DEFAULT));
338338

339+
mbedtls_ssl_conf_max_version(&mConf, MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3); // TLS 1.2
339340
mbedtls_ssl_conf_authmode(&mConf, MBEDTLS_SSL_VERIFY_OPTIONAL);
340341
mbedtls_ssl_conf_rng(&mConf, mbedtls_ctr_drbg_random, &mDrbg);
341342

0 commit comments

Comments
 (0)