Skip to content

Commit

Permalink
Bump async-tls (libp2p#1532)
Browse files Browse the repository at this point in the history
* Bump async-tls

* Bump rustls version
  • Loading branch information
Demi-Marie authored Apr 3, 2020
1 parent 3eec3cc commit 8411087
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions transports/websocket/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 0 additions & 5 deletions transports/websocket/src/framed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 8411087

Please sign in to comment.