From f294f198b768242a15ceba9a5bd6f46ae7a41291 Mon Sep 17 00:00:00 2001 From: Yuxiang Cao Date: Mon, 26 Jun 2023 20:01:31 -0700 Subject: [PATCH] style: update comments in ssl_conf_ca_cb.rs --- mbedtls/tests/ssl_conf_ca_cb.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mbedtls/tests/ssl_conf_ca_cb.rs b/mbedtls/tests/ssl_conf_ca_cb.rs index f6d6cbd02..45476da97 100644 --- a/mbedtls/tests/ssl_conf_ca_cb.rs +++ b/mbedtls/tests/ssl_conf_ca_cb.rs @@ -35,8 +35,8 @@ where let mut config = Config::new(Endpoint::Client, Transport::Stream, Preset::Default); config.set_rng(rng); config.set_ca_callback(ca_callback); - // The certificates in this test now only support TLS 1.2 - // TODO: update tests to cover TLS 1.3 + // `set_ca_callback` for TLS client is only available in TLS 1.2 + // In TLS 1.3, TLS client no longer support CA callback. config.set_min_version(mbedtls::ssl::Version::Tls12)?; config.set_max_version(mbedtls::ssl::Version::Tls12)?; let mut ctx = Context::new(Arc::new(config));