Skip to content

Commit 52ddf85

Browse files
author
Test User
committed
Add rsa invalid key size fix
1 parent 9a9e393 commit 52ddf85

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/test_rsa.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,6 +1260,7 @@ int test_rsa_pkey_invalid_key_size(void *data) {
12601260
}
12611261

12621262
#if defined(HAVE_FIPS) || defined(HAVE_FIPS_VERSION)
1263+
#ifndef REPLACE_DEFAULT
12631264
if (err == 0) {
12641265
PRINT_MSG("Check that signing with OpenSSL and verifying with "
12651266
"wolfProvider using a 1024-bit key works.");
@@ -1270,6 +1271,7 @@ int test_rsa_pkey_invalid_key_size(void *data) {
12701271
err = test_pkey_verify(pkey, wpLibCtx, buf, sizeof(buf), rsaSig,
12711272
rsaSigLen, 0, NULL, NULL);
12721273
}
1274+
#endif
12731275
#endif /* HAVE_FIPS || HAVE_FIPS_VERSION */
12741276

12751277
EVP_PKEY_free(pkey);

0 commit comments

Comments
 (0)