Skip to content

Commit

Permalink
Allow brainpool on libressl (#10222)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex committed Jan 21, 2024
1 parent 6b4a4de commit 410f4a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rust/src/backend/ec.rs
Expand Up @@ -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,

_ => {
Expand Down

0 comments on commit 410f4a1

Please sign in to comment.