File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff 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 ( )
You can’t perform that action at this time.
0 commit comments