From 63ba0073a458bcf02aa910ae057638477241ad0f Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Tue, 29 Aug 2017 07:23:38 -1000 Subject: [PATCH] Update TLS-related dependencies. (#41) Use a temporary private fork of tokio-rustls that uses Rustls 0.12 until tokio-rustls 0.4 is released. This upgrades, among other things, *ring* to 0.12, which will ensure that it still builds in the Rust 1.20 release coming this week even if backward-compatibility-breaking changes to rustc aren't fixed before the release. --- Cargo.toml | 6 +++--- examples/akamai.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 21a1283..59aba0a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,6 +32,6 @@ serde_json = "1.0.0" tokio-core = "0.1" env_logger = "0.4.3" io-dump = { git = "https://github.com/carllerche/io-dump" } -rustls = "0.10.0" -tokio-rustls = "0.3.1" -webpki-roots = "0.12.0" +rustls = "0.11" +tokio-rustls = { git = "https://github.com/briansmith/tokio-rustls", tag = "b/p1" } +webpki-roots = "0.13" diff --git a/examples/akamai.rs b/examples/akamai.rs index 9c3ff70..9e5ee73 100644 --- a/examples/akamai.rs +++ b/examples/akamai.rs @@ -29,7 +29,7 @@ pub fn main() { let tls_client_config = std::sync::Arc::new({ let mut c = rustls::ClientConfig::new(); - c.root_store.add_trust_anchors(&webpki_roots::ROOTS); + c.root_store.add_server_trust_anchors(&webpki_roots::TLS_SERVER_ROOTS); c.alpn_protocols.push(ALPN_H2.to_owned()); c });