Skip to content

Commit 2325972

Browse files
committed
Fix rsa_pss_calc_salt not used with opensslextra=x509small.
1 parent 33ff56b commit 2325972

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pk.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3528,7 +3528,7 @@ int wolfSSL_RSA_generate_key_ex(WOLFSSL_RSA* rsa, int bits, WOLFSSL_BIGNUM* e,
35283528

35293529
#ifdef WC_RSA_PSS
35303530

3531-
#if defined(OPENSSL_EXTRA) || defined(OPENSSL_EXTRA_X509_SMALL)
3531+
#ifdef OPENSSL_EXTRA
35323532
static int rsa_pss_calc_salt(int saltLen, int hashLen, int emLen)
35333533
{
35343534
/* Calculate the salt length to use for special cases. */
@@ -3555,7 +3555,7 @@ static int rsa_pss_calc_salt(int saltLen, int hashLen, int emLen)
35553555
}
35563556
return saltLen;
35573557
}
3558-
#endif /* OPENSSL_EXTRA || OPENSSL_EXTRA_X509_SMALL */
3558+
#endif /* OPENSSL_EXTRA */
35593559

35603560
#if (defined(OPENSSL_ALL) || defined(WOLFSSL_ASIO) || \
35613561
defined(WOLFSSL_HAPROXY) || defined(WOLFSSL_NGINX)) && \

0 commit comments

Comments
 (0)