mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 04:04:39 +02:00
Attempt to fix Visual Studio 2012 compiler issue with test.h myVerify callback.
This commit is contained in:
@@ -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));
|
||||||
|
Reference in New Issue
Block a user