Update `webpki-roots` to 0.25

This commit is contained in:
Constantin Nickel 2023-11-15 18:55:56 +01:00
parent 272d83c430
commit 6c61d54ad2
2 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@ version = "0.6.0"
[dependencies.webpki-roots] [dependencies.webpki-roots]
optional = true optional = true
version = "0.24" version = "0.25"
[dev-dependencies] [dev-dependencies]
criterion = "0.5.0" criterion = "0.5.0"

View File

@ -114,8 +114,8 @@ mod encryption {
} }
#[cfg(feature = "rustls-tls-webpki-roots")] #[cfg(feature = "rustls-tls-webpki-roots")]
{ {
root_store.add_server_trust_anchors( root_store.add_trust_anchors(
webpki_roots::TLS_SERVER_ROOTS.0.iter().map(|ta| { webpki_roots::TLS_SERVER_ROOTS.iter().map(|ta| {
rustls::OwnedTrustAnchor::from_subject_spki_name_constraints( rustls::OwnedTrustAnchor::from_subject_spki_name_constraints(
ta.subject, ta.subject,
ta.spki, ta.spki,