Skip to content

Commit db454f6

Browse files
committed
Update RusTLS dependencies
1 parent 93552bf commit db454f6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ multipart = { version = "0.18.0", default-features = false, features = [
2929
"client",
3030
], optional = true }
3131
native-tls = { version = "0.2.10", optional = true }
32-
rustls-native-certs = { version = "0.7", optional = true }
33-
rustls-opt-dep = { package = "rustls", version = "0.23.0", default-features = false, features = [
32+
rustls-native-certs = { version = "0.8.1", optional = true }
33+
rustls-opt-dep = { package = "rustls", version = "0.23.22", default-features = false, features = [
3434
"ring",
3535
"std",
3636
"tls12",
@@ -39,7 +39,7 @@ serde = { version = "1.0.143", optional = true }
3939
serde_json = { version = "1.0.83", optional = true }
4040
serde_urlencoded = { version = "0.7.1", optional = true }
4141
url = "2.2.2"
42-
webpki-roots = { version = "0.26.0", optional = true }
42+
webpki-roots = { version = "0.26.8", optional = true }
4343

4444
[dev-dependencies]
4545
anyhow = "1.0.61"

src/tls/rustls_impl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ impl TlsHandshaker {
6363
root_store.extend(TLS_SERVER_ROOTS.iter().cloned());
6464

6565
#[cfg(feature = "tls-rustls-native-roots")]
66-
for cert in load_native_certs()? {
66+
for cert in load_native_certs().certs {
6767
// Inspired by https://github.com/seanmonstar/reqwest/blob/231b18f83572836c674404b33cb1ca8b35ca3e36/src/async_impl/client.rs#L363-L365
6868
// Native certificate stores often include certificates with invalid formats,
6969
// but we don't want those invalid entries to invalidate the entire process of

0 commit comments

Comments
 (0)