From 32b0303beb69b9bd32f3a9fb32eb1f23ede8fc1b Mon Sep 17 00:00:00 2001 From: David Garske Date: Fri, 5 Aug 2016 14:06:58 -0700 Subject: [PATCH] Fix build with "WOLFSSL_CALLBACKS" defined. --- examples/client/client.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/client/client.c b/examples/client/client.c index be3a31d3a..0469be812 100644 --- a/examples/client/client.c +++ b/examples/client/client.c @@ -553,7 +553,9 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args) int disableCRL = 0; int externalTest = 0; int ret; +#ifndef WOLFSSL_CALLBACKS int err = 0; +#endif int scr = 0; /* allow secure renegotiation */ int forceScr = 0; /* force client initiaed scr */ int trackMemory = 0; @@ -1363,7 +1365,7 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args) #else timeout.tv_sec = 2; timeout.tv_usec = 0; - NonBlockingSSL_Connect(ctx, ssl); /* will keep retrying on timeout */ + NonBlockingSSL_Connect(ssl); /* will keep retrying on timeout */ #endif showPeer(ssl); @@ -1529,7 +1531,7 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args) #else timeout.tv_sec = 2; timeout.tv_usec = 0; - NonBlockingSSL_Connect(ctx, ssl); /* will keep retrying on timeout */ + NonBlockingSSL_Connect(ssl); /* will keep retrying on timeout */ #endif showPeer(sslResume);