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.
This commit is contained in:
Brian Smith
2017-08-29 07:23:38 -10:00
committed by Carl Lerche
parent 11df3633a4
commit 63ba0073a4
2 changed files with 4 additions and 4 deletions

View File

@@ -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
});