Skip to content

Commit

Permalink
add ssl_mut method to retrieve mut ref from stream
Browse files Browse the repository at this point in the history
  • Loading branch information
jmayclin committed Apr 22, 2024
1 parent 83b3186 commit 48398b6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions openssl/src/ssl/mod.rs
Expand Up @@ -3991,6 +3991,11 @@ impl<S> SslStream<S> {
pub fn ssl(&self) -> &SslRef {
&self.ssl
}

/// Returns a mutable reference to the `Ssl` object associated with this stream.
pub fn ssl_mut(&mut self) -> &mut SslRef {
&mut self.ssl
}
}

impl<S: Read + Write> Read for SslStream<S> {
Expand Down

0 comments on commit 48398b6

Please sign in to comment.