From f1e6f7d01d1296af0a047481dc4f2de3cbf04431 Mon Sep 17 00:00:00 2001 From: David Garske Date: Thu, 11 May 2017 13:40:32 -0700 Subject: [PATCH] Attempt to fix Visual Studio 2012 compiler issue with test.h myVerify callback. --- wolfssl/test.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wolfssl/test.h b/wolfssl/test.h index 8dadd7105..cb2333d95 100644 --- a/wolfssl/test.h +++ b/wolfssl/test.h @@ -1204,12 +1204,11 @@ static INLINE unsigned int my_psk_server_cb(WOLFSSL* ssl, const char* identity, static INLINE int myVerify(int preverify, WOLFSSL_X509_STORE_CTX* store) { - (void)preverify; char buffer[WOLFSSL_MAX_ERROR_SZ]; - #ifdef OPENSSL_EXTRA WOLFSSL_X509* peer; #endif + (void)preverify; printf("In verification callback, error = %d, %s\n", store->error, wolfSSL_ERR_error_string(store->error, buffer));