From 815971fdf03102c15b944b770af35309b88333cc Mon Sep 17 00:00:00 2001 From: Anatoly Ikorsky Date: Thu, 14 Sep 2023 16:14:39 +0300 Subject: [PATCH] Fix build for updated webpki-roots --- src/io/tls/rustls_io.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/io/tls/rustls_io.rs b/src/io/tls/rustls_io.rs index 654581d3..a976b961 100644 --- a/src/io/tls/rustls_io.rs +++ b/src/io/tls/rustls_io.rs @@ -23,7 +23,7 @@ impl Endpoint { } let mut root_store = RootCertStore::empty(); - root_store.add_server_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.0.iter().map(|ta| { + root_store.add_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.iter().map(|ta| { OwnedTrustAnchor::from_subject_spki_name_constraints( ta.subject, ta.spki, @@ -56,7 +56,7 @@ impl Endpoint { let mut config = if let Some(identity) = ssl_opts.client_identity() { let (cert_chain, priv_key) = identity.load()?; - config_builder.with_single_cert(cert_chain, priv_key)? + config_builder.with_client_auth_cert(cert_chain, priv_key)? } else { config_builder.with_no_client_auth() };