From 167f5aece1ade1486d9d085c2b4155224c126e0b Mon Sep 17 00:00:00 2001 From: Rushil Mehra Date: Sat, 23 Mar 2024 19:51:09 -0700 Subject: [PATCH] Remove kx-safe-default gate on SslCurve While setting curves should be restricted by the kx-safe-default feature, reading the curve is allowed. --- boring/src/ssl/mod.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/boring/src/ssl/mod.rs b/boring/src/ssl/mod.rs index 9bfbaf1a..223f625f 100644 --- a/boring/src/ssl/mod.rs +++ b/boring/src/ssl/mod.rs @@ -670,12 +670,10 @@ impl SslSignatureAlgorithm { } /// A TLS Curve. -#[cfg(not(feature = "kx-safe-default"))] #[repr(transparent)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] pub struct SslCurve(c_int); -#[cfg(not(feature = "kx-safe-default"))] impl SslCurve { pub const SECP224R1: SslCurve = SslCurve(ffi::NID_secp224r1);