Skip to content

Commit caf8494

Browse files
authored
Merge pull request #8911 from gojimmypi/pr-allow-only-rsa
Allow configuration with only RSA cipher suites
2 parents b361c62 + afa22df commit caf8494

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/ssl.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,11 @@
4848
#if !defined(WOLFSSL_ALLOW_NO_SUITES) && !defined(WOLFCRYPT_ONLY)
4949
#if defined(NO_DH) && !defined(HAVE_ECC) && !defined(WOLFSSL_STATIC_RSA) \
5050
&& !defined(WOLFSSL_STATIC_DH) && !defined(WOLFSSL_STATIC_PSK) \
51-
&& !defined(HAVE_CURVE25519) && !defined(HAVE_CURVE448)
51+
&& !defined(HAVE_CURVE25519) && !defined(HAVE_CURVE448) \
52+
&& defined(NO_RSA)
5253
#error "No cipher suites defined because DH disabled, ECC disabled, " \
53-
"and no static suites defined. Please see top of README"
54+
"RSA disabled and no static suites defined. " \
55+
"Please see top of README"
5456
#endif
5557
#ifdef WOLFSSL_CERT_GEN
5658
/* need access to Cert struct for creating certificate */

0 commit comments

Comments
 (0)