Skip to content

Commit

Permalink
tls/deps: update rustls-native-certs@0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
BiagioFesta committed Sep 2, 2024
1 parent 544348d commit 4fcb949
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion wtransport/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pem = "3.0.4"
quinn = { version = "0.11.3", default-features = false, features = ["runtime-tokio", "rustls"] }
rcgen = { version = "0.13.1", optional = true }
rustls = { version = "0.23.12", default-features = false, features = ["ring"] }
rustls-native-certs = "0.7.1"
rustls-native-certs = "0.8.0"
rustls-pemfile = "2.1.3"
rustls-pki-types = "1.8.0"
sha2 = "0.10.8"
Expand Down
9 changes: 5 additions & 4 deletions wtransport/src/tls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -573,10 +573,11 @@ pub fn build_native_cert_store() -> RootCertStore {

let mut root_store = RootCertStore::empty();

if let Ok(certs) = rustls_native_certs::load_native_certs() {
for c in certs {
let _ = root_store.add(c);
}
let rustls_native_certs::CertificateResult { certs, .. } =
rustls_native_certs::load_native_certs();

for c in certs {
let _ = root_store.add(c);
}

root_store
Expand Down

0 comments on commit 4fcb949

Please sign in to comment.