Remove conditional FIPS dependence for 3DES
@@ -745,7 +745,13 @@ int setup_tests(void)
#ifndef OPENSSL_NO_DH
ADD_TEST(kem_invalid_keytype);
#endif
+ /*
+ * The FIPS provider doesn't have 3DES, so we skip this test if
+ * FIPS is available. It's not perfect because FIPS + default might be
+ * loaded but it's good enough.
+ */
#ifndef OPENSSL_NO_DES
+ if (!OSSL_PROVIDER_available(libctx, "fips"))
ADD_TEST(test_cipher_tdes_randkey);
#endif
return 1;
