From: Matt Caswell Date: Wed, 14 Oct 2020 16:34:04 +0000 (+0100) Subject: Don't test a deprecated function in a no-deprecated build X-Git-Tag: openssl-3.0.0-alpha10~244 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4c2f498a34208f2468d9532455c2de76030c987;p=thirdparty%2Fopenssl.git Don't test a deprecated function in a no-deprecated build EVP_PKEY_set1_DH is deprecated so there is no need to test it in a no-deprecated build. Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/13138) --- diff --git a/test/evp_extra_test.c b/test/evp_extra_test.c index fa6d173e308..c1aaf67c85d 100644 --- a/test/evp_extra_test.c +++ b/test/evp_extra_test.c @@ -1844,7 +1844,7 @@ static int test_decrypt_null_chunks(void) } #endif /* !defined(OPENSSL_NO_CHACHA) && !defined(OPENSSL_NO_POLY1305) */ -#ifndef OPENSSL_NO_DH +#if !defined(OPENSSL_NO_DH) && !defined(OPENSSL_NO_DEPRECATED_3_0) static int test_EVP_PKEY_set1_DH(void) { DH *x942dh = NULL, *noqdh = NULL; @@ -2197,7 +2197,7 @@ int setup_tests(void) #if !defined(OPENSSL_NO_CHACHA) && !defined(OPENSSL_NO_POLY1305) ADD_TEST(test_decrypt_null_chunks); #endif -#ifndef OPENSSL_NO_DH +#if !defined(OPENSSL_NO_DH) && !defined(OPENSSL_NO_DEPRECATED_3_0) ADD_TEST(test_EVP_PKEY_set1_DH); #endif ADD_ALL_TESTS(test_keygen_with_empty_template, 2);