summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPauli <pauli@openssl.org>2021-04-22 11:50:15 +1000
committerTomas Mraz <tomas@openssl.org>2021-04-23 11:11:03 +0200
commitda671c4184a4c8e7c3856b9ccdc6a6b4cece4012 (patch)
tree402733b8d8ba9ee15f827a0859033578e5ec7aab /test
parent5af6e154d0a4cd5b1d3a46bcfab444e714364d67 (diff)
Runchecker: fix no-ec2m build which was trying to validate the e2cm curves
The evp_extra_test program was trying to validate these curves when they were not build. Fixes #14959 Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14977)
Diffstat (limited to 'test')
-rw-r--r--test/evp_extra_test.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/test/evp_extra_test.c b/test/evp_extra_test.c
index b781c583b5..3d63482f64 100644
--- a/test/evp_extra_test.c
+++ b/test/evp_extra_test.c
@@ -2700,10 +2700,15 @@ err:
#endif
#ifndef OPENSSL_NO_EC
-static int ecpub_nids[] = { NID_brainpoolP256r1, NID_X9_62_prime256v1,
- NID_secp384r1, NID_secp521r1, NID_sect233k1, NID_sect233r1, NID_sect283r1,
+static int ecpub_nids[] = {
+ NID_brainpoolP256r1, NID_X9_62_prime256v1,
+ NID_secp384r1, NID_secp521r1,
+# ifndef OPENSSL_NO_EC2M
+ NID_sect233k1, NID_sect233r1, NID_sect283r1,
NID_sect409k1, NID_sect409r1, NID_sect571k1, NID_sect571r1,
- NID_brainpoolP384r1, NID_brainpoolP512r1};
+# endif
+ NID_brainpoolP384r1, NID_brainpoolP512r1
+};
static int test_ecpub(int idx)
{