diff --git a/Cargo.toml b/Cargo.toml index 9236e913..5d49b139 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -54,7 +54,7 @@ version = "0.6.0" [dependencies.webpki-roots] optional = true -version = "0.24" +version = "0.25" [dev-dependencies] criterion = "0.5.0" diff --git a/src/tls.rs b/src/tls.rs index a9ac4f10..9956f8f1 100644 --- a/src/tls.rs +++ b/src/tls.rs @@ -114,8 +114,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,