shutdown shadows global in sys/socket.h line 576 renamed wc_shutdown
This commit is contained in:
parent
317e7fdb08
commit
8d5bba7962
@ -208,7 +208,7 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args)
|
||||
int doPeerCheck = 1;
|
||||
int nonBlocking = 0;
|
||||
int resumeSession = 0;
|
||||
int shutdown = 0;
|
||||
int wc_shutdown = 0;
|
||||
int ret;
|
||||
int scr = 0; /* allow secure renegotiation */
|
||||
int forceScr = 0; /* force client initiaed scr */
|
||||
@ -371,7 +371,7 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args)
|
||||
break;
|
||||
|
||||
case 'w' :
|
||||
shutdown = 1;
|
||||
wc_shutdown = 1;
|
||||
break;
|
||||
|
||||
case 'R' :
|
||||
@ -811,7 +811,7 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args)
|
||||
|
||||
if (doDTLS == 0) { /* don't send alert after "break" command */
|
||||
ret = wolfSSL_shutdown(ssl);
|
||||
if (shutdown && ret == SSL_SHUTDOWN_NOT_DONE)
|
||||
if (wc_shutdown && ret == SSL_SHUTDOWN_NOT_DONE)
|
||||
wolfSSL_shutdown(ssl); /* bidirectional shutdown */
|
||||
}
|
||||
#ifdef ATOMIC_USER
|
||||
@ -890,7 +890,7 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args)
|
||||
wolfSSL_write(sslResume, msg, msgSz);
|
||||
|
||||
ret = wolfSSL_shutdown(sslResume);
|
||||
if (shutdown && ret == SSL_SHUTDOWN_NOT_DONE)
|
||||
if (wc_shutdown && ret == SSL_SHUTDOWN_NOT_DONE)
|
||||
wolfSSL_shutdown(sslResume); /* bidirectional shutdown */
|
||||
|
||||
wolfSSL_free(sslResume);
|
||||
|
@ -174,7 +174,7 @@ THREAD_RETURN CYASSL_THREAD server_test(void* args)
|
||||
int fewerPackets = 0;
|
||||
int pkCallbacks = 0;
|
||||
int serverReadyFile = 0;
|
||||
int shutdown = 0;
|
||||
int wc_shutdown = 0;
|
||||
int ret;
|
||||
char* cipherList = NULL;
|
||||
const char* verifyCert = cliCert;
|
||||
@ -261,7 +261,7 @@ THREAD_RETURN CYASSL_THREAD server_test(void* args)
|
||||
break;
|
||||
|
||||
case 'w' :
|
||||
shutdown = 1;
|
||||
wc_shutdown = 1;
|
||||
break;
|
||||
|
||||
case 'v' :
|
||||
@ -568,7 +568,7 @@ THREAD_RETURN CYASSL_THREAD server_test(void* args)
|
||||
#endif
|
||||
|
||||
ret = SSL_shutdown(ssl);
|
||||
if (shutdown && ret == SSL_SHUTDOWN_NOT_DONE)
|
||||
if (wc_shutdown && ret == SSL_SHUTDOWN_NOT_DONE)
|
||||
SSL_shutdown(ssl); /* bidirectional shutdown */
|
||||
SSL_free(ssl);
|
||||
SSL_CTX_free(ctx);
|
||||
|
Loading…
Reference in New Issue
Block a user