From 410f4a1ee4cbf46fe7e969bb48fccf261f74bbcd Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sun, 21 Jan 2024 13:25:00 -0500 Subject: [PATCH] Allow brainpool on libressl (#10222) --- src/rust/src/backend/ec.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rust/src/backend/ec.rs b/src/rust/src/backend/ec.rs index 07a3ce6aac72..e221b025cbb9 100644 --- a/src/rust/src/backend/ec.rs +++ b/src/rust/src/backend/ec.rs @@ -65,11 +65,11 @@ fn curve_from_py_curve( "sect409k1" => openssl::nid::Nid::SECT409K1, "sect571k1" => openssl::nid::Nid::SECT571K1, - #[cfg(not(any(CRYPTOGRAPHY_IS_LIBRESSL, CRYPTOGRAPHY_IS_BORINGSSL)))] + #[cfg(not(CRYPTOGRAPHY_IS_BORINGSSL))] "brainpoolP256r1" => openssl::nid::Nid::BRAINPOOL_P256R1, - #[cfg(not(any(CRYPTOGRAPHY_IS_LIBRESSL, CRYPTOGRAPHY_IS_BORINGSSL)))] + #[cfg(not(CRYPTOGRAPHY_IS_BORINGSSL))] "brainpoolP384r1" => openssl::nid::Nid::BRAINPOOL_P384R1, - #[cfg(not(any(CRYPTOGRAPHY_IS_LIBRESSL, CRYPTOGRAPHY_IS_BORINGSSL)))] + #[cfg(not(CRYPTOGRAPHY_IS_BORINGSSL))] "brainpoolP512r1" => openssl::nid::Nid::BRAINPOOL_P512R1, _ => {