diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2018-07-10 13:22:59 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2018-07-10 13:22:59 +0200 |
commit | 6ba983b6d688b198d2bc05544eba3368a91ac35f (patch) | |
tree | 01537995eb785f3bf38c7f2b987086cd7fd54a1a /net/src/async.rs | |
parent | 8d1c467e46499dc41d28a09c81b11dc37ec9431d (diff) |
net, ffi: Bump native-tls and hyper-tls.
Diffstat (limited to 'net/src/async.rs')
-rw-r--r-- | net/src/async.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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) |