diff --git a/boring/src/ssl/mod.rs b/boring/src/ssl/mod.rs index 08ee28f3..603ae2d7 100644 --- a/boring/src/ssl/mod.rs +++ b/boring/src/ssl/mod.rs @@ -3677,6 +3677,10 @@ impl SslRef { { unsafe { cvt(ffi::SSL_use_PrivateKey(self.as_ptr(), key.as_ptr())).map(|_| ()) } } + + pub fn clear_mode(&mut self, mode: u32) -> u32 { + unsafe { ffi::SSL_clear_mode(self.as_ptr(), mode) } + } } /// An SSL stream midway through the handshake process.