forked from wolfSSL/wolfssl
DTLS 1.3: move state machine forward when HVR received
This commit is contained in:
@@ -11917,7 +11917,7 @@ int wolfSSL_connect_TLSv13(WOLFSSL* ssl)
|
|||||||
case CLIENT_HELLO_SENT:
|
case CLIENT_HELLO_SENT:
|
||||||
/* Get the response/s from the server. */
|
/* Get the response/s from the server. */
|
||||||
while (ssl->options.serverState <
|
while (ssl->options.serverState <
|
||||||
SERVER_HELLO_RETRY_REQUEST_COMPLETE) {
|
SERVER_HELLOVERIFYREQUEST_COMPLETE) {
|
||||||
if ((ssl->error = ProcessReply(ssl)) < 0) {
|
if ((ssl->error = ProcessReply(ssl)) < 0) {
|
||||||
WOLFSSL_ERROR(ssl->error);
|
WOLFSSL_ERROR(ssl->error);
|
||||||
return WOLFSSL_FATAL_ERROR;
|
return WOLFSSL_FATAL_ERROR;
|
||||||
|
@@ -6836,7 +6836,7 @@ static int test_client_nofail(void* args, cbType cb)
|
|||||||
if (ret < 0) { break; } else if (ret == 0) { continue; }
|
if (ret < 0) { break; } else if (ret == 0) { continue; }
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
ret = wolfSSL_connect(ssl);
|
ret = wolfSSL_negotiate(ssl);
|
||||||
err = wolfSSL_get_error(ssl, 0);
|
err = wolfSSL_get_error(ssl, 0);
|
||||||
} while (err == WC_PENDING_E);
|
} while (err == WC_PENDING_E);
|
||||||
if (ret != WOLFSSL_SUCCESS) {
|
if (ret != WOLFSSL_SUCCESS) {
|
||||||
|
Reference in New Issue
Block a user