Skip to content

Commit

Permalink
Fix deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sfackler committed Dec 6, 2017
1 parent 81bbef0 commit d1ee3e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ exclude = ["test/*"]
[dependencies]
antidote = "1.0.0"
hyper = "0.11.0"
openssl = "0.9.10"
openssl = "0.9.23"
tokio-core = "0.1.8"
tokio-io = "0.1.2"
tokio-openssl = "0.1.3"
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ impl Inner {
};

if let Some(ref callback) = self.ssl_callback {
if let Err(e) = callback(conf.ssl_mut(), &uri) {
if let Err(e) = callback(&mut conf, &uri) {
return Box::new(future::err(io::Error::new(io::ErrorKind::Other, e)));
}
}
Expand All @@ -101,7 +101,7 @@ impl Inner {
port: uri.port().unwrap_or(443),
};
if let Some(session) = self.session_cache.lock().get(&key) {
if let Err(e) = unsafe { conf.ssl_mut().set_session(session) } {
if let Err(e) = unsafe { conf.set_session(session) } {
return Box::new(future::err(io::Error::new(io::ErrorKind::Other, e)));
}
}
Expand Down

0 comments on commit d1ee3e1

Please sign in to comment.