Fix enable-fastmath with disable-rsa build.

WOLFSSL_MAX_RSA_BITS was being checked against ENCRYPT_BASE_BITS
even though RSA is disabled.
This commit is contained in:
jordan
2022-10-12 15:26:05 -05:00
parent 72839d05f5
commit 248952648d

View File

@ -1210,7 +1210,7 @@ enum {
#error "MySQL needs FP_MAX_BITS at least at 16384"
#endif
#if WOLFSSL_MAX_RSA_BITS > ENCRYPT_BASE_BITS
#if !defined(NO_RSA) && WOLFSSL_MAX_RSA_BITS > ENCRYPT_BASE_BITS
#error "FP_MAX_BITS too small for WOLFSSL_MAX_RSA_BITS"
#endif
#elif defined(WOLFSSL_SP_MATH_ALL) || defined(WOLFSSL_SP_MATH)