Skip to content

Commit f7690f2

Browse files
committed
deps: update webpki-roots v0.23 -> v0.25.
Fixes one breaking change related to the `TLS_SERVER_ROOTS` type.
1 parent 72fc40d commit f7690f2

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

Cargo.lock

Lines changed: 2 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ once_cell = { version = "1.9", optional = true } # Only used during doc generati
4646
[target.'cfg(target_os = "linux")'.dependencies]
4747
rustls-native-certs = "0.6"
4848
once_cell = "1.9"
49-
webpki-roots = "0.23" # Augmentation to `openssl-probe` due to inconsistencies on Linux distros.
49+
webpki-roots = "0.25" # Augmentation to `openssl-probe` due to inconsistencies on Linux distros.
5050
webpki = { package = "rustls-webpki", version = "0.100.0", features = ["alloc", "std"] }
5151

5252
[target.'cfg(target_os = "android")'.dependencies]
@@ -57,7 +57,7 @@ android_logger = { version = "0.11", optional = true } # Only used during testin
5757

5858
[target.'cfg(target_arch = "wasm32")'.dependencies]
5959
once_cell = "1.9"
60-
webpki-roots = "0.23"
60+
webpki-roots = "0.25"
6161

6262
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies]
6363
core-foundation = "0.9"

src/verification/others.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ fn map_webpki_errors(err: TlsError) -> TlsError {
156156
fn load_webpki_roots(store: &mut RootCertStore) {
157157
use rustls::OwnedTrustAnchor;
158158

159-
store.add_server_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.0.iter().map(|root| {
159+
store.add_server_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.iter().map(|root| {
160160
OwnedTrustAnchor::from_subject_spki_name_constraints(
161161
root.subject,
162162
root.spki,

0 commit comments

Comments
 (0)