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:
@@ -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