Update to webpki-roots 0.25

This commit is contained in:
Sebastian Dröge 2023-08-08 15:40:34 +03:00 committed by Sebastian Dröge
parent 8eba873db3
commit 02a96b2e0c
2 changed files with 5 additions and 5 deletions

View File

@ -93,7 +93,7 @@ version = "0.6"
[dependencies.webpki-roots]
optional = true
version = "0.23"
version = "0.25"
[dependencies.gio]
optional = true

View File

@ -65,15 +65,15 @@ where
{
use real_tokio_rustls::rustls::OwnedTrustAnchor;
root_store.add_server_trust_anchors(
webpki_roots::TLS_SERVER_ROOTS.0.iter().map(|ta| {
root_store.add_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.iter().map(
|ta| {
OwnedTrustAnchor::from_subject_spki_name_constraints(
ta.subject,
ta.spki,
ta.name_constraints,
)
}),
);
},
));
}
TlsConnector::from(std::sync::Arc::new(
ClientConfig::builder()