From d6b219bd38fb79135095465e2c3f8a39f62d495e Mon Sep 17 00:00:00 2001 From: David Garske Date: Tue, 3 Nov 2020 14:23:08 -0800 Subject: [PATCH] Fix for `./configure --enable-fips=ready --enable-opensslextra`. --- src/ssl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ssl.c b/src/ssl.c index b1c0a9871f..0207f053f1 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -45583,7 +45583,9 @@ int wolfSSL_RSA_private_decrypt(int len, const unsigned char* fr, return ret; } -#if !defined(_WIN32) && !defined(HAVE_FIPS) && !defined(HAVE_SELFTEST) +#if !defined(_WIN32) && !defined(HAVE_SELFTEST) && \ + (!defined(HAVE_FIPS) || \ + (defined(HAVE_FIPS_VERSION) && HAVE_FIPS_VERSION > 2)) int wolfSSL_RSA_public_decrypt(int flen, const unsigned char* from, unsigned char* to, WOLFSSL_RSA* rsa, int padding) {