Update webpki-roots to 0.26

This commit is contained in:
Alex Butler 2023-12-01 22:59:05 +00:00 committed by Daniel Abramov
parent 0f6e6517e6
commit 866ce20dbe
3 changed files with 5 additions and 4 deletions

View File

@ -1,6 +1,7 @@
# Unreleased (0.20.2)
- Improve `FrameHeader::format` write correctness.
- Up minimum _rustls_ to `0.21.6`.
- Update _webpki-roots_ to `0.26`.
# 0.20.1
- Fixes [CVE-2023-43669](https://github.com/snapview/tungstenite-rs/pull/379).

View File

@ -54,7 +54,7 @@ version = "0.6.0"
[dependencies.webpki-roots]
optional = true
version = "0.25"
version = "0.26"
[dev-dependencies]
criterion = "0.5.0"

View File

@ -117,9 +117,9 @@ mod encryption {
root_store.add_trust_anchors(
webpki_roots::TLS_SERVER_ROOTS.iter().map(|ta| {
rustls::OwnedTrustAnchor::from_subject_spki_name_constraints(
ta.subject,
ta.spki,
ta.name_constraints,
ta.subject.as_ref(),
ta.subject_public_key_info.as_ref(),
ta.name_constraints.as_deref(),
)
})
);