Attempt to fix Visual Studio 2012 compiler issue with test.h myVerify callback.

This commit is contained in:
David Garske
2017-05-11 13:40:32 -07:00
parent 05d2032661
commit f1e6f7d01d

View File

@@ -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) static INLINE int myVerify(int preverify, WOLFSSL_X509_STORE_CTX* store)
{ {
(void)preverify;
char buffer[WOLFSSL_MAX_ERROR_SZ]; char buffer[WOLFSSL_MAX_ERROR_SZ];
#ifdef OPENSSL_EXTRA #ifdef OPENSSL_EXTRA
WOLFSSL_X509* peer; WOLFSSL_X509* peer;
#endif #endif
(void)preverify;
printf("In verification callback, error = %d, %s\n", store->error, printf("In verification callback, error = %d, %s\n", store->error,
wolfSSL_ERR_error_string(store->error, buffer)); wolfSSL_ERR_error_string(store->error, buffer));