From bf4d6454b103ae3c380adb7ea0190eead7bd1f56 Mon Sep 17 00:00:00 2001 From: kaleb-himes Date: Tue, 9 Feb 2016 17:06:06 -0700 Subject: [PATCH] if connection to google.com and using ECC need supported curves --- examples/client/client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/client/client.c b/examples/client/client.c index f0aba4a76..b79adf2b7 100644 --- a/examples/client/client.c +++ b/examples/client/client.c @@ -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 */