Skip to content

Commit

Permalink
Bump webpki-roots to v0.25 (#1922)
Browse files Browse the repository at this point in the history
  • Loading branch information
bouzuya authored Aug 3, 2023
1 parent 61b1b2b commit 99bbae6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ tokio-native-tls = { version = "0.3.0", optional = true }
hyper-rustls = { version = "0.24.0", default-features = false, optional = true }
rustls = { version = "0.21.0", features = ["dangerous_configuration"], optional = true }
tokio-rustls = { version = "0.24", optional = true }
webpki-roots = { version = "0.24", optional = true }
webpki-roots = { version = "0.25", optional = true }
rustls-native-certs = { version = "0.6", optional = true }
rustls-pemfile = { version = "1.0", optional = true }

Expand Down
4 changes: 2 additions & 2 deletions src/async_impl/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -415,15 +415,15 @@ impl ClientBuilder {
use rustls::OwnedTrustAnchor;

let trust_anchors =
webpki_roots::TLS_SERVER_ROOTS.0.iter().map(|trust_anchor| {
webpki_roots::TLS_SERVER_ROOTS.iter().map(|trust_anchor| {
OwnedTrustAnchor::from_subject_spki_name_constraints(
trust_anchor.subject,
trust_anchor.spki,
trust_anchor.name_constraints,
)
});

root_cert_store.add_server_trust_anchors(trust_anchors);
root_cert_store.add_trust_anchors(trust_anchors);
}

#[cfg(feature = "rustls-tls-native-roots")]
Expand Down

0 comments on commit 99bbae6

Please sign in to comment.