We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72cbd9a commit e175410Copy full SHA for e175410
1 file changed
src/ssl.c
@@ -29505,7 +29505,13 @@ int wolfSSL_SSL_in_connect_init(WOLFSSL* ssl)
29505
if (ssl == NULL)
29506
return WOLFSSL_FAILURE;
29507
29508
- return ssl->options.handShakeState == NULL_STATE;
+ if (ssl->options.side == WOLFSSL_CLIENT_END) {
29509
+ return ssl->options.connectState > CONNECT_BEGIN &&
29510
+ ssl->options.connectState < SECOND_REPLY_DONE;
29511
+ }
29512
+
29513
+ return ssl->options.acceptState > ACCEPT_BEGIN &&
29514
+ ssl->options.acceptState < ACCEPT_THIRD_REPLY_DONE;
29515
}
29516
29517
#ifndef NO_SESSION_CACHE
0 commit comments