mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 20:54:41 +02:00
addressed review comments
This commit is contained in:
@@ -1592,7 +1592,6 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args)
|
||||
#endif
|
||||
int version = CLIENT_INVALID_VERSION;
|
||||
int minVersion = CLIENT_INVALID_VERSION;
|
||||
int setMinVersion = 0;
|
||||
int usePsk = 0;
|
||||
int useAnon = 0;
|
||||
int sendGET = 0;
|
||||
@@ -2269,7 +2268,6 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args)
|
||||
simulateWantWrite = 1;
|
||||
break;
|
||||
case '7' :
|
||||
setMinVersion = 1;
|
||||
minVersion = atoi(myoptarg);
|
||||
if (minVersion < 0 || minVersion > 4) {
|
||||
Usage();
|
||||
@@ -2563,7 +2561,7 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args)
|
||||
err_sys("unable to get ctx");
|
||||
}
|
||||
#endif
|
||||
if (setMinVersion) {
|
||||
if (minVersion != CLIENT_INVALID_VERSION) {
|
||||
wolfSSL_CTX_SetMinVersion(ctx, minVersion);
|
||||
}
|
||||
if (simulateWantWrite) {
|
||||
|
@@ -1135,7 +1135,6 @@ THREAD_RETURN WOLFSSL_THREAD server_test(void* args)
|
||||
wolfsentry_errcode_t wolfsentry_ret;
|
||||
#endif
|
||||
int minVersion = SERVER_INVALID_VERSION;
|
||||
int setMinVersion = 0;
|
||||
int useWebServerMsg = 0;
|
||||
char input[SRV_READ_SZ];
|
||||
#ifndef WOLFSSL_VXWORKS
|
||||
@@ -1800,7 +1799,6 @@ THREAD_RETURN WOLFSSL_THREAD server_test(void* args)
|
||||
simulateWantWrite = 1;
|
||||
break;
|
||||
case '7' :
|
||||
setMinVersion = 1;
|
||||
minVersion = atoi(myoptarg);
|
||||
if (minVersion < 0 || minVersion > 4) {
|
||||
Usage();
|
||||
@@ -2004,7 +2002,7 @@ THREAD_RETURN WOLFSSL_THREAD server_test(void* args)
|
||||
if (ctx == NULL)
|
||||
err_sys_ex(catastrophic, "unable to get ctx");
|
||||
|
||||
if (setMinVersion) {
|
||||
if (minVersion != SERVER_INVALID_VERSION) {
|
||||
wolfSSL_CTX_SetMinVersion(ctx, minVersion);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user