evp_pkey_dparams_test.c: Fix build error on OPENSSL_NO_{DH,DSA,EC}
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>
Sun, 29 Nov 2020 19:35:49 +0000 (20:35 +0100)
committerDr. David von Oheimb <David.von.Oheimb@siemens.com>
Fri, 4 Dec 2020 15:20:53 +0000 (16:20 +0100)
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13110)

test/evp_pkey_dparams_test.c

index f1d528eb271858ec4d7cb66b1854967e2077d72f..b8e9493dcaedf45edd516fee2114200dc80261db 100644 (file)
@@ -89,6 +89,7 @@ static const unsigned char ecparam_bin[] = {
 };
 #endif
 
+#if !defined(OPENSSL_NO_DH) || !defined(OPENSSL_NO_DSA) || !defined(OPENSSL_NO_EC)
 static const struct {
     int type;
     const unsigned char *param_bin;
@@ -105,7 +106,6 @@ static const struct {
 #endif
 };
 
-#if !defined(OPENSSL_NO_DH) || !defined(OPENSSL_NO_DSA) || !defined(OPENSSL_NO_EC)
 static int params_bio_test(int id)
 {
     int ret, out_len;