Skip to content

Commit a40e41c

Browse files
committed
selftest version > 2
1 parent a36f908 commit a40e41c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pk.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3536,7 +3536,8 @@ int wolfSSL_RSA_generate_key_ex(WOLFSSL_RSA* rsa, int bits, WOLFSSL_BIGNUM* e,
35363536

35373537
#ifdef WC_RSA_PSS
35383538

3539-
#if defined(OPENSSL_EXTRA) && !defined(HAVE_SELFTEST)
3539+
#if defined(OPENSSL_EXTRA) && (!defined(HAVE_SELFTEST) || \
3540+
(defined(HAVE_SELFTEST_VERSION) && (HAVE_SELFTEST_VERSION > 2)))
35403541
static int rsa_pss_calc_salt(int saltLen, int hashLen, int emLen)
35413542
{
35423543
/* Calculate the salt length to use for special cases. */

0 commit comments

Comments
 (0)