Bump async-tls (#1532)

* Bump async-tls

* Bump rustls version
This commit is contained in:
Demi Obenour
2020-04-03 15:48:14 +00:00
committed by GitHub
parent 3eec3cc85c
commit 84110878b8
2 changed files with 2 additions and 7 deletions

View File

@@ -10,14 +10,14 @@ keywords = ["peer-to-peer", "libp2p", "networking"]
categories = ["network-programming", "asynchronous"]
[dependencies]
async-tls = "0.6"
async-tls = "0.7.0"
bytes = "0.5"
either = "1.5.3"
futures = "0.3.1"
libp2p-core = { version = "0.17.0", path = "../../core" }
log = "0.4.8"
quicksink = "0.1"
rustls = "0.16"
rustls = "0.17.0"
rw-stream-sink = "0.2.0"
soketto = { version = "0.3", features = ["deflate"] }
url = "2.1"

View File

@@ -308,11 +308,6 @@ where
let dns_name = dns_name.expect("for use_tls we have checked that dns_name is some");
trace!("starting TLS handshake with {}", address);
let stream = self.tls_config.client.connect(&dns_name, stream)
.map_err(|e| {
// We should never enter here as we passed a `DNSNameRef` to `connect`.
debug!("invalid domain name: {:?}", dns_name);
Error::Tls(e.into())
})?
.map_err(|e| {
debug!("TLS handshake with {} failed: {}", address, e);
Error::Tls(tls::Error::from(e))