correct logic to allow for static RSA if ECC and no Curves

use same coding standards as the rest of the libraries
This commit is contained in:
kaleb-himes
2016-02-10 13:28:31 -07:00
parent bf4d6454b1
commit ffe7b38409

View File

@ -769,7 +769,8 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args)
#endif
#if !defined(HAVE_ECC) && !defined(WOLFSSL_STATIC_RSA) \
|| ( defined(HAVE_ECC) && !defined(HAVE_SUPPORTED_CURVES) )
|| ( defined(HAVE_ECC) && !defined(HAVE_SUPPORTED_CURVES) \
&& !defined(WOLFSSL_STATIC_RSA) )
if (!XSTRNCMP(domain, "www.google.com", 14) ||
!XSTRNCMP(domain, "www.wolfssl.com", 15)) {
/* google/wolfssl need ECDHE or static RSA */