diff --git a/boring/src/ssl/mod.rs b/boring/src/ssl/mod.rs index 3bcde136..1d789997 100644 --- a/boring/src/ssl/mod.rs +++ b/boring/src/ssl/mod.rs @@ -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).