diff --git a/Cargo.toml b/Cargo.toml index c96c1125..7f06fe30 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -59,7 +59,7 @@ version = "0.24.1" [dependencies.webpki-roots] optional = true -version = "0.25.2" +version = "0.26.0" [dev-dependencies] futures-channel = "0.3.28" diff --git a/src/tls.rs b/src/tls.rs index 44fa142a..5609e6e6 100644 --- a/src/tls.rs +++ b/src/tls.rs @@ -107,9 +107,9 @@ mod encryption { root_store.add_trust_anchors( webpki_roots::TLS_SERVER_ROOTS.iter().map(|ta| { rustls::OwnedTrustAnchor::from_subject_spki_name_constraints( - ta.subject, - ta.spki, - ta.name_constraints, + ta.subject.as_ref(), + ta.subject_public_key_info.as_ref(), + ta.name_constraints.as_deref(), ) }) );