Description: use newer minor version of crate rustls-platform-verifier Author: Jonas Smedegaard Last-Update: 2026-02-16 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/Cargo.toml +++ b/Cargo.toml @@ -25,7 +25,7 @@ env_logger = "0.11" memchr = "2.7" rustls = { version = "0.23", default-features = false, features = ["logging", "ring", "std", "tls12"] } -rustls-platform-verifier = "0.5" +rustls-platform-verifier = "0.6" tokio = { version = "1", features = ["full"] } url = "2.5" uuid = { version = "1", features = ["v4"] } --- a/examples/std-https-v1_0-rustls.rs +++ b/examples/std-https-v1_0-rustls.rs @@ -101,9 +101,11 @@ let domain = url.domain().unwrap(); if url.scheme().eq_ignore_ascii_case("https") { - let config = ClientConfig::with_platform_verifier(); + let config = ClientConfig::with_platform_verifier() + .expect("Failed to load TLS certificates") + .into(); let server_name = domain.to_string().try_into().unwrap(); - let conn = ClientConnection::new(Arc::new(config), server_name).unwrap(); + let conn = ClientConnection::new(config, server_name).unwrap(); let tcp = TcpStream::connect((domain.to_string(), 443)).unwrap(); let tls = StreamOwned::new(conn, tcp); Box::new(tls)