Skip to content

Commit 0d5f254

Browse files
committed
Use new SslStream constructor
1 parent 369961a commit 0d5f254

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ log = "0.3"
3131
phf = "0.7"
3232
rustc-serialize = "0.3"
3333
chrono = { version = "0.2.14", optional = true }
34-
openssl = { version = "0.6", optional = true }
34+
openssl = { version = "0.6.4", optional = true }
3535
serde = { version = "0.3", optional = true }
3636
time = { version = "0.1.14", optional = true }
3737
unix_socket = { version = ">= 0.3, < 0.5", optional = true }

src/io/openssl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ impl StreamWrapper for SslStream<Stream> {
1818
impl NegotiateSsl for SslContext {
1919
fn negotiate_ssl(&self, _: &str, stream: Stream)
2020
-> Result<Box<StreamWrapper>, Box<Error+Send+Sync>> {
21-
let stream = try!(SslStream::new(self, stream));
21+
let stream = try!(SslStream::connect(self, stream));
2222
Ok(Box::new(stream))
2323
}
2424
}

0 commit comments

Comments
 (0)