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:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user