From 809cf78a18ecbeef44fb2fe9134bb62a57f72d30 Mon Sep 17 00:00:00 2001 From: tottoto Date: Thu, 27 Jul 2023 20:47:03 +0900 Subject: [PATCH] chore(tonic): Update to webpki-roots 0.25.0 --- tonic/Cargo.toml | 2 +- tonic/src/transport/service/tls.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tonic/Cargo.toml b/tonic/Cargo.toml index b559b8746..ef3222fce 100644 --- a/tonic/Cargo.toml +++ b/tonic/Cargo.toml @@ -79,7 +79,7 @@ async-stream = { version = "0.3", optional = true } rustls-pemfile = { version = "1.0", optional = true } rustls-native-certs = { version = "0.6.1", optional = true } tokio-rustls = { version = "0.24.0", optional = true } -webpki-roots = { version = "0.24.0", optional = true } +webpki-roots = { version = "0.25.0", optional = true } # compression flate2 = {version = "1.0", optional = true} diff --git a/tonic/src/transport/service/tls.rs b/tonic/src/transport/service/tls.rs index ab4e94242..960fc329a 100644 --- a/tonic/src/transport/service/tls.rs +++ b/tonic/src/transport/service/tls.rs @@ -51,7 +51,7 @@ impl TlsConnector { { use tokio_rustls::rustls::OwnedTrustAnchor; - roots.add_server_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.0.iter().map(|ta| { + roots.add_server_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.iter().map(|ta| { OwnedTrustAnchor::from_subject_spki_name_constraints( ta.subject, ta.spki,