Skip to content

Commit 1a5b134

Browse files
authored
Merge pull request #1955 from reaperhulk/oh-mickey-youre-affine
allow affine_coordinates on boring and libre
2 parents 64b3106 + 7b18e90 commit 1a5b134

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

openssl-sys/src/handwritten/ec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ extern "C" {
101101

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

104-
#[cfg(ossl111)]
104+
#[cfg(any(ossl111, boringssl, libressl350))]
105105
pub fn EC_POINT_get_affine_coordinates(
106106
group: *const EC_GROUP,
107107
p: *const EC_POINT,

openssl/src/ec.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ impl EcPointRef {
491491
/// Places affine coordinates of a curve over a prime field in the provided
492492
/// `x` and `y` `BigNum`s.
493493
#[corresponds(EC_POINT_get_affine_coordinates)]
494-
#[cfg(ossl111)]
494+
#[cfg(any(ossl111, boringssl, libressl350))]
495495
pub fn affine_coordinates(
496496
&self,
497497
group: &EcGroupRef,
@@ -1197,7 +1197,7 @@ mod test {
11971197
assert!(ec_key.check_key().is_ok());
11981198
}
11991199

1200-
#[cfg(ossl111)]
1200+
#[cfg(any(ossl111, boringssl, libressl350))]
12011201
#[test]
12021202
fn get_affine_coordinates() {
12031203
let group = EcGroup::from_curve_name(Nid::X9_62_PRIME256V1).unwrap();

0 commit comments

Comments
 (0)