Remove kx-safe-default gate on SslCurve

While setting curves should be restricted by the kx-safe-default
feature, reading the curve is allowed.
This commit is contained in:
Rushil Mehra 2024-03-23 19:51:09 -07:00 committed by Rushil Mehra
parent b96d2b88a4
commit 167f5aece1
1 changed files with 0 additions and 2 deletions

View File

@ -670,12 +670,10 @@ impl SslSignatureAlgorithm {
} }
/// A TLS Curve. /// A TLS Curve.
#[cfg(not(feature = "kx-safe-default"))]
#[repr(transparent)] #[repr(transparent)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)] #[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct SslCurve(c_int); pub struct SslCurve(c_int);
#[cfg(not(feature = "kx-safe-default"))]
impl SslCurve { impl SslCurve {
pub const SECP224R1: SslCurve = SslCurve(ffi::NID_secp224r1); pub const SECP224R1: SslCurve = SslCurve(ffi::NID_secp224r1);