From 48398b6c9f5f660660664cb53713046cc1c6c7ea Mon Sep 17 00:00:00 2001 From: James Mayclin Date: Mon, 22 Apr 2024 17:49:21 +0000 Subject: [PATCH] add ssl_mut method to retrieve mut ref from stream --- openssl/src/ssl/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openssl/src/ssl/mod.rs b/openssl/src/ssl/mod.rs index 2ff9dac1fd..48761e9a1a 100644 --- a/openssl/src/ssl/mod.rs +++ b/openssl/src/ssl/mod.rs @@ -3991,6 +3991,11 @@ impl SslStream { 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 Read for SslStream {