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 30, 2024
1 parent 9b90b7d commit a323dd0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions openssl/src/ssl/mod.rs
Original file line number Diff line number Diff line change
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 a323dd0

Please sign in to comment.