if connection to google.com and using ECC need supported curves

This commit is contained in:
kaleb-himes 2016-02-09 17:06:06 -07:00
parent 62a2efdacc
commit bf4d6454b1

View File

@ -768,7 +768,8 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args)
done += 1; /* external cert chain most likely has SHA */
#endif
#if !defined(HAVE_ECC) && !defined(WOLFSSL_STATIC_RSA)
#if !defined(HAVE_ECC) && !defined(WOLFSSL_STATIC_RSA) \
|| ( defined(HAVE_ECC) && !defined(HAVE_SUPPORTED_CURVES) )
if (!XSTRNCMP(domain, "www.google.com", 14) ||
!XSTRNCMP(domain, "www.wolfssl.com", 15)) {
/* google/wolfssl need ECDHE or static RSA */