]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix no-deprecated builds
authorMatt Caswell <matt@openssl.org>
Wed, 4 Feb 2026 12:16:15 +0000 (12:16 +0000)
committerTomas Mraz <tomas@openssl.org>
Fri, 13 Feb 2026 07:57:58 +0000 (08:57 +0100)
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
MergeDate: Fri Feb 13 07:58:20 2026
(Merged from https://github.com/openssl/openssl/pull/29960)

test/evp_extra_test.c

index 77c376c0255c6a0e21509a82eb95ef698e88a6ce..45acffa9867bd3266449c3ba3631d28f7af177fb 100644 (file)
@@ -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;
 }