From: Matt Caswell Date: Wed, 4 Feb 2026 12:16:15 +0000 (+0000) Subject: Fix no-deprecated builds X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0ecb93fc1393884692c491b2c6a460851eedf18;p=thirdparty%2Fopenssl.git Fix no-deprecated builds Reviewed-by: Shane Lontis Reviewed-by: Tomas Mraz MergeDate: Fri Feb 13 07:58:20 2026 (Merged from https://github.com/openssl/openssl/pull/29960) --- diff --git a/test/evp_extra_test.c b/test/evp_extra_test.c index 77c376c0255..45acffa9867 100644 --- a/test/evp_extra_test.c +++ b/test/evp_extra_test.c @@ -6295,6 +6295,8 @@ end: return testresult; } +#ifndef OPENSSL_NO_DEPRECATED_3_0 + static int sign_hits = 0; static int do_sign_with_method(EVP_PKEY *pkey) @@ -6441,7 +6443,7 @@ err: DSA_meth_free(method); return testresult; } -#endif +#endif /* OPENSSL_NO_DSA */ #ifndef OPENSSL_NO_EC static int (*orig_ec_sign)(int type, const unsigned char *dgst, @@ -6507,7 +6509,7 @@ err: EC_KEY_METHOD_free(method); return testresult; } -#endif +#endif /* OPENSSL_NO_EC */ #ifndef OPENSSL_NO_DH @@ -6619,7 +6621,8 @@ err: OPENSSL_free(buf); return testresult; } -#endif +#endif /* OPENSSL_NO_DH */ +#endif /* OPENSSL_NO_DEPRECATED_3_0 */ int setup_tests(void) { @@ -6793,6 +6796,7 @@ int setup_tests(void) ADD_ALL_TESTS(test_ml_dsa_seed_only, 2); #endif +#ifndef OPENSSL_NO_DEPRECATED_3_0 ADD_TEST(test_low_level_rsa_method); #ifndef OPENSSL_NO_DSA ADD_TEST(test_low_level_dsa_method); @@ -6803,6 +6807,7 @@ int setup_tests(void) #ifndef OPENSSL_NO_DH ADD_TEST(test_low_level_dh_method); #endif +#endif /* OPENSSL_NO_DEPRECATED_3_0 */ return 1; }