Blame otp-0011-In-openssl-1.0.1e-EC_GROUP_new_curve_GF2m-function-i.patch

4fcc82
From: "Matwey V. Kornilov" <matwey.kornilov@gmail.com>
4fcc82
Date: Sat, 21 Dec 2013 00:13:35 +0400
4fcc82
Subject: [PATCH] In openssl 1.0.1e EC_GROUP_new_curve_GF2m function is wrapped
4fcc82
 by #ifndef OPENSSL_NO_EC2M. We have to check whether OPENSSL_NO_EC2M is set,
4fcc82
 and if it is, then we do not have EC_GROUP_new_curve_GF2m function and do not
4fcc82
 HAVE_EC.
4fcc82
4fcc82
4fcc82
diff --git a/lib/crypto/c_src/crypto.c b/lib/crypto/c_src/crypto.c
4fcc82
index df607732bf..a1fe05dd41 100644
4fcc82
--- a/lib/crypto/c_src/crypto.c
4fcc82
+++ b/lib/crypto/c_src/crypto.c
4fcc82
@@ -168,7 +168,8 @@
4fcc82
 #if OPENSSL_VERSION_NUMBER >= PACKED_OPENSSL_VERSION(0,9,8,'o') \
4fcc82
 	&& !defined(OPENSSL_NO_EC) \
4fcc82
 	&& !defined(OPENSSL_NO_ECDH) \
4fcc82
-	&& !defined(OPENSSL_NO_ECDSA)
4fcc82
+	&& !defined(OPENSSL_NO_ECDSA) \
4fcc82
+	&& !defined(OPENSSL_NO_EC2M)
4fcc82
 # define HAVE_EC
4fcc82
 #endif
4fcc82