From 4b12d2f4ec5a9a5dd0d3d98c95e8b984fa965b76 Mon Sep 17 00:00:00 2001 From: Sean Parkinson Date: Tue, 6 Sep 2022 17:15:22 +1000 Subject: [PATCH] RSA max and SP_INT_BITS: disabled RSA fix Checking WOLFSSL_MAX_RSA_BITS against SP_INT_BITS even though RSA is disabled. /configure --disable-shared --enable-sp --enable-sp-math --disable-rsa --disable-dh --enable-ecc --- wolfssl/internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfssl/internal.h b/wolfssl/internal.h index 1470c4f50..4cf9f9f8f 100644 --- a/wolfssl/internal.h +++ b/wolfssl/internal.h @@ -1231,7 +1231,7 @@ enum { #error "MySQL needs SP_INT_BITS at least at 8192" #endif - #if WOLFSSL_MAX_RSA_BITS > SP_INT_BITS + #if !defined(NO_RSA) && WOLFSSL_MAX_RSA_BITS > SP_INT_BITS #error "SP_INT_BITS too small for WOLFSSL_MAX_RSA_BITS" #endif #else