From 8569d14cb3473409218ce09c0b6e1664a94af7d9 Mon Sep 17 00:00:00 2001 From: David Garske Date: Fri, 1 Mar 2019 16:12:08 -0800 Subject: [PATCH] Fixes for minor nightly build errors. Missing `wc_ecc_fp_free` declaration and "Value stored to 'useSupCurve' is never read". --- examples/client/client.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/client/client.c b/examples/client/client.c index d0d0f27a8..debf440eb 100644 --- a/examples/client/client.c +++ b/examples/client/client.c @@ -48,6 +48,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; @@ -1615,7 +1618,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");