Skip to content

Commit

Permalink
allow affine_coordinates on boring and libre
Browse files Browse the repository at this point in the history
  • Loading branch information
reaperhulk committed Jun 5, 2023
1 parent 64b3106 commit 7b18e90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion openssl-sys/src/handwritten/ec.rs
Expand Up @@ -101,7 +101,7 @@ extern "C" {

pub fn EC_POINT_dup(p: *const EC_POINT, group: *const EC_GROUP) -> *mut EC_POINT;

#[cfg(ossl111)]
#[cfg(any(ossl111, boringssl, libressl350))]
pub fn EC_POINT_get_affine_coordinates(
group: *const EC_GROUP,
p: *const EC_POINT,
Expand Down
4 changes: 2 additions & 2 deletions openssl/src/ec.rs
Expand Up @@ -491,7 +491,7 @@ impl EcPointRef {
/// Places affine coordinates of a curve over a prime field in the provided
/// `x` and `y` `BigNum`s.
#[corresponds(EC_POINT_get_affine_coordinates)]
#[cfg(ossl111)]
#[cfg(any(ossl111, boringssl, libressl350))]
pub fn affine_coordinates(
&self,
group: &EcGroupRef,
Expand Down Expand Up @@ -1197,7 +1197,7 @@ mod test {
assert!(ec_key.check_key().is_ok());
}

#[cfg(ossl111)]
#[cfg(any(ossl111, boringssl, libressl350))]
#[test]
fn get_affine_coordinates() {
let group = EcGroup::from_curve_name(Nid::X9_62_PRIME256V1).unwrap();
Expand Down

0 comments on commit 7b18e90

Please sign in to comment.