summaryrefslogtreecommitdiffstats
path: root/test/evp_pkey_provided_test.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2019-12-18 11:14:29 +0000
committerMatt Caswell <matt@openssl.org>2019-12-23 10:22:21 +0000
commit285c691304890364a6126e9302415490b35130e5 (patch)
treefa2f3e551af34e07f0a32c1cba2dd1b6550e1bd9 /test/evp_pkey_provided_test.c
parent501fcfb8cfc1aa114ffde437039c2dc2827554ae (diff)
Fix no-dh
The new serializer code broke no-dh builds so we add some more guards to fix it. Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de> (Merged from https://github.com/openssl/openssl/pull/10644)
Diffstat (limited to 'test/evp_pkey_provided_test.c')
-rw-r--r--test/evp_pkey_provided_test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/evp_pkey_provided_test.c b/test/evp_pkey_provided_test.c
index 6dcd0fe701..c38f79ce79 100644
--- a/test/evp_pkey_provided_test.c
+++ b/test/evp_pkey_provided_test.c
@@ -139,6 +139,7 @@ static int test_fromdata_rsa(void)
return ret;
}
+#ifndef OPENSSL_NO_DH
/* Array indexes used in test_fromdata_dh */
#define PRIV_KEY 0
#define PUB_KEY 1
@@ -187,10 +188,13 @@ static int test_fromdata_dh(void)
return ret;
}
+#endif
int setup_tests(void)
{
ADD_TEST(test_fromdata_rsa);
+#ifndef OPENSSL_NO_DH
ADD_TEST(test_fromdata_dh);
+#endif
return 1;
}