forked from wolfSSL/wolfssl
memcached: Revert wolfSSL_in_connect_init changes
This commit is contained in:
@@ -29505,7 +29505,13 @@ int wolfSSL_SSL_in_connect_init(WOLFSSL* ssl)
|
||||
if (ssl == NULL)
|
||||
return WOLFSSL_FAILURE;
|
||||
|
||||
return ssl->options.handShakeState == NULL_STATE;
|
||||
if (ssl->options.side == WOLFSSL_CLIENT_END) {
|
||||
return ssl->options.connectState > CONNECT_BEGIN &&
|
||||
ssl->options.connectState < SECOND_REPLY_DONE;
|
||||
}
|
||||
|
||||
return ssl->options.acceptState > ACCEPT_BEGIN &&
|
||||
ssl->options.acceptState < ACCEPT_THIRD_REPLY_DONE;
|
||||
}
|
||||
|
||||
#ifndef NO_SESSION_CACHE
|
||||
|
Reference in New Issue
Block a user