diff options
-rw-r--r-- | ffi/Cargo.toml | 2 | ||||
-rw-r--r-- | net/Cargo.toml | 4 | ||||
-rw-r--r-- | net/src/async.rs | 8 |
3 files changed, 7 insertions, 7 deletions
diff --git a/ffi/Cargo.toml b/ffi/Cargo.toml index 98f2fcc7..5d52f231 100644 --- a/ffi/Cargo.toml +++ b/ffi/Cargo.toml @@ -11,7 +11,7 @@ sequoia-net = { path = "../net" } failure = "0.1.1" lazy_static = "1.0.0" libc = "0.2.33" -native-tls = "0.1.4" +native-tls = "0.2.0" [lib] crate-type = ["cdylib", "staticlib"] 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) |