Skip to content

Commit e43c9e4

Browse files
committed
Warn about set_curves() removal
b46d770
1 parent 36a2a1c commit e43c9e4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

boring/src/ssl/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2066,13 +2066,16 @@ impl SslContextBuilder {
20662066
}
20672067
}
20682068

2069+
/// Use `Self::set_curves_list()` instead.
2070+
///
20692071
/// Sets the context's supported curves.
20702072
//
20712073
// If the "kx-*" flags are used to set key exchange preference, then don't allow the user to
20722074
// set them here. This ensures we don't override the user's preference without telling them:
20732075
// when the flags are used, the preferences are set just before connecting or accepting.
20742076
#[corresponds(SSL_CTX_set1_curves)]
20752077
#[cfg(not(feature = "kx-safe-default"))]
2078+
#[deprecated(note = "Use set_curves_list(). set_curves() and SslCurve will be removed in the next release")]
20762079
pub fn set_curves(&mut self, curves: &[SslCurve]) -> Result<(), ErrorStack> {
20772080
let curves: Vec<i32> = curves
20782081
.iter()

0 commit comments

Comments
 (0)