From 9be8881c9260b6410fdc02ca82dc34451909c727 Mon Sep 17 00:00:00 2001 From: Daniel Meir Doron Date: Sun, 27 Aug 2023 18:28:13 +0300 Subject: [PATCH] fix rustls-tls-webpki-roots build --- src/tls.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tls.rs b/src/tls.rs index c9015a65..44fa142a 100644 --- a/src/tls.rs +++ b/src/tls.rs @@ -104,8 +104,8 @@ mod encryption { } #[cfg(feature = "rustls-tls-webpki-roots")] { - 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| { rustls::OwnedTrustAnchor::from_subject_spki_name_constraints( ta.subject, ta.spki,