summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2018-07-10 13:22:59 +0200
committerJustus Winter <justus@sequoia-pgp.org>2018-07-10 13:22:59 +0200
commit6ba983b6d688b198d2bc05544eba3368a91ac35f (patch)
tree01537995eb785f3bf38c7f2b987086cd7fd54a1a /net
parent8d1c467e46499dc41d28a09c81b11dc37ec9431d (diff)
net, ffi: Bump native-tls and hyper-tls.
Diffstat (limited to 'net')
-rw-r--r--net/Cargo.toml4
-rw-r--r--net/src/async.rs8
2 files changed, 6 insertions, 6 deletions
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<AClient> = {
- 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)