feat: deprecated `set_key_shares_length_limit` (#37)
This commit is contained in:
parent
6bd4118645
commit
0e555ba26b
|
|
@ -1948,10 +1948,17 @@ impl SslContextBuilder {
|
||||||
|
|
||||||
/// Sets whether the context should enable there key share extension.
|
/// Sets whether the context should enable there key share extension.
|
||||||
#[corresponds(SSL_CTX_set_key_shares_limit)]
|
#[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 _) }
|
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.
|
/// Sets the indices of the extensions to be permuted.
|
||||||
///
|
///
|
||||||
/// The indices must be in the range [0, 25).
|
/// The indices must be in the range [0, 25).
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue