mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-10 18:07:19 +00:00
parent
d566f45ae2
commit
856d85f9b6
9
Cargo.lock
generated
9
Cargo.lock
generated
@ -3329,7 +3329,7 @@ dependencies = [
|
|||||||
"rw-stream-sink",
|
"rw-stream-sink",
|
||||||
"soketto",
|
"soketto",
|
||||||
"url",
|
"url",
|
||||||
"webpki-roots 0.24.0",
|
"webpki-roots 0.25.1",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@ -6252,12 +6252,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "webpki-roots"
|
name = "webpki-roots"
|
||||||
version = "0.24.0"
|
version = "0.25.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "b291546d5d9d1eab74f069c77749f2cb8504a12caa20f0f2de93ddbf6f411888"
|
checksum = "c9c6eda1c830a36f361e7721c87fd79ea84293b54f8c48c959f85ec636f0f196"
|
||||||
dependencies = [
|
|
||||||
"rustls-webpki",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "webrtc"
|
name = "webrtc"
|
||||||
|
@ -22,7 +22,7 @@ quicksink = "0.1"
|
|||||||
rw-stream-sink = { workspace = true }
|
rw-stream-sink = { workspace = true }
|
||||||
soketto = "0.7.0"
|
soketto = "0.7.0"
|
||||||
url = "2.1"
|
url = "2.1"
|
||||||
webpki-roots = "0.24"
|
webpki-roots = "0.25"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
libp2p-tcp = { workspace = true, features = ["async-io"] }
|
libp2p-tcp = { workspace = true, features = ["async-io"] }
|
||||||
|
@ -92,7 +92,7 @@ impl Config {
|
|||||||
/// Setup the rustls client configuration.
|
/// Setup the rustls client configuration.
|
||||||
fn client_root_store() -> rustls::RootCertStore {
|
fn client_root_store() -> rustls::RootCertStore {
|
||||||
let mut client_root_store = rustls::RootCertStore::empty();
|
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(
|
rustls::OwnedTrustAnchor::from_subject_spki_name_constraints(
|
||||||
ta.subject,
|
ta.subject,
|
||||||
ta.spki,
|
ta.spki,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user