From b21046375a0071717f22ea4a81ce37bfdd46da1d Mon Sep 17 00:00:00 2001 From: Andrew Roetker Date: Tue, 11 Apr 2017 15:42:05 -0700 Subject: (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. --- openssl/src/ec.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'openssl/src') 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, -- cgit v1.2.3