From 6ba983b6d688b198d2bc05544eba3368a91ac35f Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Tue, 10 Jul 2018 13:22:59 +0200 Subject: net, ffi: Bump native-tls and hyper-tls. --- net/Cargo.toml | 4 ++-- net/src/async.rs | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'net') diff --git a/net/Cargo.toml b/net/Cargo.toml index 061ece30..54e08f40 100644 --- a/net/Cargo.toml +++ b/net/Cargo.toml @@ -13,9 +13,9 @@ fs2 = "0.4.2" futures = "0.1" http = "0.1.5" hyper = "0.12" -hyper-tls = "0.2" +hyper-tls = "0.3" libc = "0.2.33" -native-tls = "0.1.4" +native-tls = "0.2.0" percent-encoding = "1.0.1" rand = "0.5" tokio-core = "0.1" diff --git a/net/src/async.rs b/net/src/async.rs index 3095c3dc..65e6cfed 100644 --- a/net/src/async.rs +++ b/net/src/async.rs @@ -63,14 +63,14 @@ impl KeyServer { let uri: Url = uri.parse()?; let client: Box = { - let mut ssl = TlsConnector::builder()?; - ssl.add_root_certificate(cert)?; - let ssl = ssl.build()?; + let mut tls = TlsConnector::builder(); + tls.add_root_certificate(cert); + let tls = tls.build()?; let mut http = HttpConnector::new(DNS_WORKER); http.enforce_http(false); Box::new(Client::builder() - .build(HttpsConnector::from((http, ssl)))) + .build(HttpsConnector::from((http, tls)))) }; Self::make(ctx, client, uri) -- cgit v1.2.3