Skip to content

Commit 3ea73e5

Browse files
authored
Merge pull request #215 from bandi13/removeInvalidTest
In new versions of wolfSSL-FIPS it is forbidden to disable FIPS
2 parents 4948b08 + 1e125b9 commit 3ea73e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_rsa.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ int test_rsa_direct_key_gen(ENGINE *e, void *data)
724724
NULL) != 0;
725725
}
726726
}
727-
#if defined(HAVE_FIPS) || defined(HAVE_FIPS_VERSION)
727+
#if defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION < 5)
728728
if (err == 0) {
729729
PRINT_MSG("Check that disabling FIPS checks allows 1024-bit key gen.");
730730
err = ENGINE_ctrl_cmd(e, "enable_fips_checks", 0, NULL, NULL, 0) == 0;
@@ -744,7 +744,7 @@ int test_rsa_direct_key_gen(ENGINE *e, void *data)
744744
/* Restore all FIPS checks. */
745745
ENGINE_ctrl_cmd(e, "enable_fips_checks", WE_FIPS_CHECKS_DEFAULT, NULL, NULL,
746746
0);
747-
#endif /* HAVE_FIPS || HAVE_FIPS_VERSION */
747+
#endif /* HAVE_FIPS_VERSION */
748748

749749
if (pubExp != NULL) {
750750
BN_free(pubExp);

0 commit comments

Comments
 (0)