diff --git a/Cargo.lock b/Cargo.lock index 7241436d..fdddd50c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3329,7 +3329,7 @@ dependencies = [ "rw-stream-sink", "soketto", "url", - "webpki-roots 0.24.0", + "webpki-roots 0.25.1", ] [[package]] @@ -6252,12 +6252,9 @@ dependencies = [ [[package]] name = "webpki-roots" -version = "0.24.0" +version = "0.25.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b291546d5d9d1eab74f069c77749f2cb8504a12caa20f0f2de93ddbf6f411888" -dependencies = [ - "rustls-webpki", -] +checksum = "c9c6eda1c830a36f361e7721c87fd79ea84293b54f8c48c959f85ec636f0f196" [[package]] name = "webrtc" diff --git a/transports/websocket/Cargo.toml b/transports/websocket/Cargo.toml index 4ae420b6..3ebeb83b 100644 --- a/transports/websocket/Cargo.toml +++ b/transports/websocket/Cargo.toml @@ -22,7 +22,7 @@ quicksink = "0.1" rw-stream-sink = { workspace = true } soketto = "0.7.0" url = "2.1" -webpki-roots = "0.24" +webpki-roots = "0.25" [dev-dependencies] libp2p-tcp = { workspace = true, features = ["async-io"] } diff --git a/transports/websocket/src/tls.rs b/transports/websocket/src/tls.rs index 260031ea..63379db6 100644 --- a/transports/websocket/src/tls.rs +++ b/transports/websocket/src/tls.rs @@ -92,7 +92,7 @@ impl Config { /// Setup the rustls client configuration. fn client_root_store() -> rustls::RootCertStore { let mut client_root_store = rustls::RootCertStore::empty(); - client_root_store.add_server_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.0.iter().map(|ta| { + client_root_store.add_server_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.iter().map(|ta| { rustls::OwnedTrustAnchor::from_subject_spki_name_constraints( ta.subject, ta.spki,