From: Matt Caswell Date: Wed, 11 Sep 2019 09:04:23 +0000 (+0100) Subject: Fix no-dsa X-Git-Tag: openssl-3.0.0-alpha1~1389 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=8d0f8c818117132a38005a046f0daacd1219e217;ds=inline Fix no-dsa Also fixes no-dh Reviewed-by: Tim Hudson (Merged from https://github.com/openssl/openssl/pull/9861) --- diff --git a/providers/common/keymgmt/build.info b/providers/common/keymgmt/build.info index 4e7bc750f5..e66190c401 100644 --- a/providers/common/keymgmt/build.info +++ b/providers/common/keymgmt/build.info @@ -1,5 +1,9 @@ LIBS=../../../libcrypto IF[{- !$disabled{dh} -}] SOURCE[../../../libcrypto]=\ - dh_kmgmt.c dsa_kmgmt.c + dh_kmgmt.c +ENDIF +IF[{- !$disabled{dsa} -}] + SOURCE[../../../libcrypto]=\ + dsa_kmgmt.c ENDIF diff --git a/test/evp_extra_test.c b/test/evp_extra_test.c index 631ad65540..bbb846e6fd 100644 --- a/test/evp_extra_test.c +++ b/test/evp_extra_test.c @@ -1398,6 +1398,7 @@ static int test_EVP_CIPHER_fetch(int tst) return ret; } +#ifndef OPENSSL_NO_DSA /* Test getting and setting parameters on an EVP_PKEY_CTX */ static int test_EVP_PKEY_CTX_get_set_params(void) { @@ -1508,6 +1509,7 @@ static int test_EVP_PKEY_CTX_get_set_params(void) return ret; } +#endif int setup_tests(void) { @@ -1545,6 +1547,8 @@ int setup_tests(void) ADD_ALL_TESTS(test_EVP_MD_fetch, 5); ADD_ALL_TESTS(test_EVP_CIPHER_fetch, 5); #endif +#ifndef OPENSSL_NO_DSA ADD_TEST(test_EVP_PKEY_CTX_get_set_params); +#endif return 1; }