summaryrefslogtreecommitdiff
path: root/openssl/src/ec.rs
diff options
context:
space:
mode:
authorAndrew Roetker <andrew.roetker@puppetlabs.com>2017-04-11 15:42:05 -0700
committerAndrew Roetker <andrew.roetker@puppetlabs.com>2017-04-11 15:42:05 -0700
commitb21046375a0071717f22ea4a81ce37bfdd46da1d (patch)
treeceec24e04e0c02d4e6d66c8b49f314270f32ac05 /openssl/src/ec.rs
parent3439ec6f41e9b6849f62e0eb6524020ec67d918b (diff)
downloadrust-openssl-b21046375a0071717f22ea4a81ce37bfdd46da1d.zip
(issues-600) Avoid compiling ec2m code against no-ec2m openssl
This commit avoids defining code that leads to undefined references when compiling against an openssl built with no-ec2m.
Diffstat (limited to 'openssl/src/ec.rs')
-rw-r--r--openssl/src/ec.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/openssl/src/ec.rs b/openssl/src/ec.rs
index 33c15569..122dd7f2 100644
--- a/openssl/src/ec.rs
+++ b/openssl/src/ec.rs
@@ -66,6 +66,7 @@ impl EcGroupRef {
}
/// Places the components of a curve over a binary field in the provided `BigNum`s.
+ #[cfg(not(osslconf = "OPENSSL_NO_EC2M"))]
pub fn components_gf2m(&self,
p: &mut BigNumRef,
a: &mut BigNumRef,