summaryrefslogtreecommitdiffstats
path: root/test/evp_libctx_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/evp_libctx_test.c')
-rw-r--r--test/evp_libctx_test.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/evp_libctx_test.c b/test/evp_libctx_test.c
index 2448c35a14..bb31328214 100644
--- a/test/evp_libctx_test.c
+++ b/test/evp_libctx_test.c
@@ -745,8 +745,14 @@ 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
- ADD_TEST(test_cipher_tdes_randkey);
+ if (!OSSL_PROVIDER_available(libctx, "fips"))
+ ADD_TEST(test_cipher_tdes_randkey);
#endif
return 1;
}