Allow configuration with only RSA cipher suites

This commit is contained in:
gojimmypi
2025-06-21 14:54:10 -07:00
parent 1be303866e
commit afa22dfc2b

View File

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