Skip to content

Commit

Permalink
Expose SSL_clear_mode
Browse files Browse the repository at this point in the history
  • Loading branch information
rushilmehra committed Jun 18, 2024
1 parent ee0fce1 commit 7984eb2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions boring/src/ssl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7984eb2

Please sign in to comment.