feat: deprecated `set_key_shares_length_limit` (#37)

This commit is contained in:
0x676e67 2025-01-22 13:19:08 +08:00 committed by GitHub
parent 6bd4118645
commit 0e555ba26b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 1 deletions

View File

@ -1948,10 +1948,17 @@ impl SslContextBuilder {
/// Sets whether the context should enable there key share extension.
#[corresponds(SSL_CTX_set_key_shares_limit)]
pub fn set_key_shares_length_limit(&mut self, limit: u8) {
pub fn set_key_shares_limit(&mut self, limit: u8) {
unsafe { ffi::SSL_CTX_set_key_shares_limit(self.as_ptr(), limit as _) }
}
/// Sets whether the context should enable there key share extension.
#[deprecated(since = "4.13.8", note = "use `set_key_shares_limit` instead")]
#[corresponds(SSL_CTX_set_key_shares_limit)]
pub fn set_key_shares_length_limit(&mut self, limit: u8) {
self.set_key_shares_limit(limit)
}
/// Sets the indices of the extensions to be permuted.
///
/// The indices must be in the range [0, 25).