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 */