aboutsummaryrefslogtreecommitdiff
path: root/test/ectest.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2019-04-19 11:17:44 +0100
committerMatt Caswell <matt@openssl.org>2019-04-23 10:39:47 +0100
commita5cf198bad4c49c2850e16c34d929c28a37afcc3 (patch)
tree3ea379089ab11f42bf68ad62c21c3f8501025f56 /test/ectest.c
parentb8621bdde70690361a36dca52688a3d946c3fe0f (diff)
downloadopenssl-a5cf198bad4c49c2850e16c34d929c28a37afcc3.zip
openssl-a5cf198bad4c49c2850e16c34d929c28a37afcc3.tar.gz
openssl-a5cf198bad4c49c2850e16c34d929c28a37afcc3.tar.bz2
Fix no-ec2m
Reviewed-by: Paul Yang <yang.yang@baishancloud.com> (Merged from https://github.com/openssl/openssl/pull/8792)
Diffstat (limited to 'test/ectest.c')
-rw-r--r--test/ectest.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/ectest.c b/test/ectest.c
index ab75ace..3f7747e 100644
--- a/test/ectest.c
+++ b/test/ectest.c
@@ -1884,11 +1884,14 @@ static int check_ec_key_field_public_range_test(int id)
* be the same point on the curve). The add is different for char2 fields.
*/
type = EC_METHOD_get_field_type(meth);
+#ifndef OPENSSL_NO_EC2M
if (type == NID_X9_62_characteristic_two_field) {
/* test for binary curves */
if (!TEST_true(BN_GF2m_add(x, x, field)))
goto err;
- } else if (type == NID_X9_62_prime_field) {
+ } else
+#endif
+ if (type == NID_X9_62_prime_field) {
/* test for prime curves */
if (!TEST_true(BN_add(x, x, field)))
goto err;