From afa22dfc2b2d1e5adc8ffc5d9f60bef11634034c Mon Sep 17 00:00:00 2001 From: gojimmypi Date: Sat, 21 Jun 2025 14:54:10 -0700 Subject: [PATCH] Allow configuration with only RSA cipher suites --- src/ssl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ssl.c b/src/ssl.c index 16acfda1c..eb66f3ea2 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -48,9 +48,11 @@ #if !defined(WOLFSSL_ALLOW_NO_SUITES) && !defined(WOLFCRYPT_ONLY) #if defined(NO_DH) && !defined(HAVE_ECC) && !defined(WOLFSSL_STATIC_RSA) \ && !defined(WOLFSSL_STATIC_DH) && !defined(WOLFSSL_STATIC_PSK) \ - && !defined(HAVE_CURVE25519) && !defined(HAVE_CURVE448) + && !defined(HAVE_CURVE25519) && !defined(HAVE_CURVE448) \ + && defined(NO_RSA) #error "No cipher suites defined because DH disabled, ECC disabled, " \ - "and no static suites defined. Please see top of README" + "RSA disabled and no static suites defined. " \ + "Please see top of README" #endif #ifdef WOLFSSL_CERT_GEN /* need access to Cert struct for creating certificate */