Skip to content

Commit

Permalink
Drop deprecated fn
Browse files Browse the repository at this point in the history
  • Loading branch information
kornelski committed Aug 13, 2024
1 parent 4c542ff commit 62aa0de
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions security-framework/src/secure_transport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -798,29 +798,6 @@ impl SslContext {
}
}

/// Sets whether a protocol is enabled or not.
///
/// # Note
///
/// On OSX this is a deprecated API in favor of `set_protocol_version_max` and
/// `set_protocol_version_min`, although if you're working with OSX 10.8 or before you may have
/// to use this API instead.
#[cfg(target_os = "macos")]
#[deprecated(note = "use `set_protocol_version_max`")]
pub fn set_protocol_version_enabled(
&mut self,
protocol: SslProtocol,
enabled: bool,
) -> Result<()> {
unsafe {
cvt(SSLSetProtocolVersionEnabled(
self.0,
protocol.0,
Boolean::from(enabled),
))
}
}

/// Returns the number of bytes which can be read without triggering a
/// `read` call in the underlying stream.
#[inline]
Expand Down

0 comments on commit 62aa0de

Please sign in to comment.