diff --git a/examples/client/client.c b/examples/client/client.c index 4302c4d5b..c2e6afc1b 100644 --- a/examples/client/client.c +++ b/examples/client/client.c @@ -46,6 +46,9 @@ /* included to inspect the size of FP_MAX_BITS */ #include #endif +#ifdef HAVE_ECC + #include +#endif #ifdef WOLFSSL_ASYNC_CRYPT static int devId = INVALID_DEVID; @@ -1613,7 +1616,9 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args) } else if (XSTRNCMP(myoptarg, "useSupCurve", 11) == 0) { printf("Test use supported curve\n"); + #if defined(HAVE_ECC) && defined(HAVE_SUPPORTED_CURVES) useSupCurve = 1; + #endif } else if (XSTRNCMP(myoptarg, "loadSSL", 7) == 0) { printf("Load cert/key into wolfSSL object\n");