Return an SslRef

This commit is contained in:
Steven Fackler 2016-10-30 22:42:32 -07:00
parent 558124b755
commit 006da59285
1 changed files with 2 additions and 2 deletions

View File

@ -1255,7 +1255,7 @@ impl<S> MidHandshakeSslStream<S> {
}
/// Returns a shared reference to the `Ssl` of the stream.
pub fn ssl(&self) -> &Ssl {
pub fn ssl(&self) -> &SslRef {
self.stream.ssl()
}
@ -1437,7 +1437,7 @@ impl<S> SslStream<S> {
}
/// Returns the OpenSSL `Ssl` object associated with this stream.
pub fn ssl(&self) -> &Ssl {
pub fn ssl(&self) -> &SslRef {
&self.ssl
}
}