Skip to content

Commit

Permalink
chore(transport): Fix tls roots deprecations (#1443)
Browse files Browse the repository at this point in the history
* chore(transport): Fix tls roots deprecations

* fix deny
  • Loading branch information
LucioFranco authored Aug 2, 2023
1 parent 8f10a28 commit d44925b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ allow = [
"Zlib",
"Unicode-DFS-2016",
"MPL-2.0",
"BSD-3-Clause"
]

[[licenses.clarify]]
Expand Down
2 changes: 1 addition & 1 deletion tonic/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion tonic/src/transport/service/tls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.iter().map(|ta| {
OwnedTrustAnchor::from_subject_spki_name_constraints(
ta.subject,
ta.spki,
Expand Down

0 comments on commit d44925b

Please sign in to comment.