Runchecker: fix no-ec2m build which was trying to validate the e2cm curves
authorPauli <pauli@openssl.org>
Thu, 22 Apr 2021 01:50:15 +0000 (11:50 +1000)
committerTomas Mraz <tomas@openssl.org>
Fri, 23 Apr 2021 09:11:03 +0000 (11:11 +0200)
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)

test/evp_extra_test.c

index b781c583b53bbf9caf05e52de7debfc8036ac61a..3d63482f64530cf42bbdf70211921c53fd63d7b0 100644 (file)
@@ -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)
 {