From 0e555ba26b588edf864e0aae21d3e3746e1f388e Mon Sep 17 00:00:00 2001 From: 0x676e67 Date: Wed, 22 Jan 2025 13:19:08 +0800 Subject: [PATCH] feat: deprecated `set_key_shares_length_limit` (#37) --- boring/src/ssl/mod.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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).