Update `webpki-roots` to 0.25
This commit is contained in:
parent
272d83c430
commit
6c61d54ad2
|
@ -54,7 +54,7 @@ version = "0.6.0"
|
||||||
|
|
||||||
[dependencies.webpki-roots]
|
[dependencies.webpki-roots]
|
||||||
optional = true
|
optional = true
|
||||||
version = "0.24"
|
version = "0.25"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
criterion = "0.5.0"
|
criterion = "0.5.0"
|
||||||
|
|
|
@ -114,8 +114,8 @@ mod encryption {
|
||||||
}
|
}
|
||||||
#[cfg(feature = "rustls-tls-webpki-roots")]
|
#[cfg(feature = "rustls-tls-webpki-roots")]
|
||||||
{
|
{
|
||||||
root_store.add_server_trust_anchors(
|
root_store.add_trust_anchors(
|
||||||
webpki_roots::TLS_SERVER_ROOTS.0.iter().map(|ta| {
|
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…
Reference in New Issue