aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/ec/eck_prn.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-02-12 17:23:32 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-02-12 17:23:32 +0000
commitb3310161249a848a5243952467a1f3927ad78bfa (patch)
treeeffad6f46ee2d9e78d9b03807f0e4d97c70804b9 /crypto/ec/eck_prn.c
parentafb4191304f1fd67569be10f04abf57064cbb197 (diff)
downloadopenssl-b3310161249a848a5243952467a1f3927ad78bfa.tar.gz
New option to disable characteristic two fields in EC code.
Diffstat (limited to 'crypto/ec/eck_prn.c')
-rw-r--r--crypto/ec/eck_prn.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/ec/eck_prn.c b/crypto/ec/eck_prn.c
index 7d3e175ae7..06de8f3959 100644
--- a/crypto/ec/eck_prn.c
+++ b/crypto/ec/eck_prn.c
@@ -207,7 +207,7 @@ int ECPKParameters_print(BIO *bp, const EC_GROUP *x, int off)
reason = ERR_R_MALLOC_FAILURE;
goto err;
}
-
+#ifndef OPENSSL_NO_EC2M
if (is_char_two)
{
if (!EC_GROUP_get_curve_GF2m(x, p, a, b, ctx))
@@ -217,6 +217,7 @@ int ECPKParameters_print(BIO *bp, const EC_GROUP *x, int off)
}
}
else /* prime field */
+#endif
{
if (!EC_GROUP_get_curve_GFp(x, p, a, b, ctx))
{