Skip to content

Commit

Permalink
style: update comments in ssl_conf_ca_cb.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Taowyoo committed Jun 27, 2023
1 parent 5d41796 commit f294f19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mbedtls/tests/ssl_conf_ca_cb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit f294f19

Please sign in to comment.