summaryrefslogtreecommitdiff
path: root/crypto/bn/bn_gf2m.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-06-06 11:49:36 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-06-06 11:49:36 +0000
commitf610a516a0e1236e21b385c4719c97403fde4a98 (patch)
treef009d59dfc838d98a359c0fad453dee1acfc2583 /crypto/bn/bn_gf2m.c
parent2e51a4caa3bff0ff59f87f7423ba0551593ef48e (diff)
downloadopenssl-new-f610a516a0e1236e21b385c4719c97403fde4a98.tar.gz
Backport from HEAD:
New option to disable characteristic two fields in EC code. Make no-ec2m work on Win32 build.
Diffstat (limited to 'crypto/bn/bn_gf2m.c')
-rw-r--r--crypto/bn/bn_gf2m.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/bn/bn_gf2m.c b/crypto/bn/bn_gf2m.c
index 527b0fa15b..3bf017feda 100644
--- a/crypto/bn/bn_gf2m.c
+++ b/crypto/bn/bn_gf2m.c
@@ -94,6 +94,8 @@
#include "cryptlib.h"
#include "bn_lcl.h"
+#ifndef OPENSSL_NO_EC2M
+
/* Maximum number of iterations before BN_GF2m_mod_solve_quad_arr should fail. */
#define MAX_ITERATIONS 50
@@ -1032,3 +1034,4 @@ int BN_GF2m_arr2poly(const int p[], BIGNUM *a)
return 1;
}
+#endif