Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

Commit

Permalink
Update webpki-roots to 0.25
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Aug 5, 2023
1 parent 36721af commit 35c21dd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ once_cell = "1.14"
rustls-pemfile = "1"
rustls-webpki = "0.101"
smol = "1.0"
webpki-roots = "0.24"
webpki-roots = "0.25"
2 changes: 1 addition & 1 deletion examples/client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ async-rustls = { path = "../.." }
rustls-pemfile = "1"
rustls-webpki = "0.101"
smol = "1"
webpki-roots = "0.24"
webpki-roots = "0.25"
2 changes: 1 addition & 1 deletion examples/client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ fn main() -> io::Result<()> {
});
root_cert_store.add_server_trust_anchors(trust_anchors);
} else {
root_cert_store.add_server_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.0.iter().map(
root_cert_store.add_server_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.iter().map(
|ta| {
OwnedTrustAnchor::from_subject_spki_name_constraints(
ta.subject,
Expand Down
4 changes: 2 additions & 2 deletions tests/badssl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async fn get(
fn test_tls12() -> io::Result<()> {
smol::block_on(async {
let mut root_store = rustls::RootCertStore::empty();
root_store.add_server_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.0.iter().map(|ta| {
root_store.add_server_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.iter().map(|ta| {
OwnedTrustAnchor::from_subject_spki_name_constraints(
ta.subject,
ta.spki,
Expand Down Expand Up @@ -76,7 +76,7 @@ fn test_tls13() {
fn test_modern() -> io::Result<()> {
smol::block_on(async {
let mut root_store = rustls::RootCertStore::empty();
root_store.add_server_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.0.iter().map(|ta| {
root_store.add_server_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.iter().map(|ta| {
OwnedTrustAnchor::from_subject_spki_name_constraints(
ta.subject,
ta.spki,
Expand Down

0 comments on commit 35c21dd

Please sign in to comment.