From 797bcb634023be643b9a2802f9fce219045b8d59 Mon Sep 17 00:00:00 2001 From: toddouska Date: Tue, 15 Sep 2015 12:13:11 -0700 Subject: [PATCH] Fix Visual Studio warning/errors --- src/internal.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/internal.c b/src/internal.c index e1b8cd551..4b439cd32 100644 --- a/src/internal.c +++ b/src/internal.c @@ -1618,6 +1618,12 @@ int VerifyRsaSign(const byte* sig, word32 sigSz, SSL_SUCCESS return value on success */ int SetSSL_CTX(WOLFSSL* ssl, WOLFSSL_CTX* ctx) { + byte havePSK = 0; + byte haveAnon = 0; + byte haveRSA = 0; + byte newSSL = ssl->ctx == NULL; + (void) haveAnon; /* Squash unused var warnings */ + if(!ssl || !ctx || ssl->suites == NULL) return BAD_FUNC_ARG; @@ -1627,11 +1633,6 @@ int SetSSL_CTX(WOLFSSL* ssl, WOLFSSL_CTX* ctx) } #endif - byte havePSK = 0; - byte haveAnon = 0; - byte haveRSA = 0; - byte newSSL = ssl->ctx == NULL; - (void) haveAnon; /* Squash unused var warnings */ #ifndef NO_RSA haveRSA = 1;