mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-16 13:20:51 +00:00
remove wait_flight2 state
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
parent
d33f7a8c72
commit
e32fac3d23
@ -692,7 +692,6 @@ typedef enum {
|
||||
MBEDTLS_SSL_HELLO_RETRY_REQUEST,
|
||||
MBEDTLS_SSL_ENCRYPTED_EXTENSIONS,
|
||||
MBEDTLS_SSL_END_OF_EARLY_DATA,
|
||||
MBEDTLS_SSL_WAIT_FLIGHT2,
|
||||
MBEDTLS_SSL_CLIENT_CERTIFICATE_VERIFY,
|
||||
MBEDTLS_SSL_CLIENT_CCS_AFTER_SERVER_FINISHED,
|
||||
MBEDTLS_SSL_CLIENT_CCS_BEFORE_2ND_CLIENT_HELLO,
|
||||
|
@ -2815,37 +2815,6 @@ static int ssl_tls13_write_server_finished(mbedtls_ssl_context *ssl)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Handler for MBEDTLS_SSL_WAIT_FLIGHT2
|
||||
*
|
||||
* RFC 8446 section A.2
|
||||
*
|
||||
* WAIT_FLIGHT2
|
||||
* |
|
||||
* +--------+--------+
|
||||
* No auth | | Client auth
|
||||
* | |
|
||||
* | v
|
||||
* | WAIT_CERT
|
||||
* | Recv | | Recv Certificate
|
||||
*/
|
||||
MBEDTLS_CHECK_RETURN_CRITICAL
|
||||
static int ssl_tls13_process_wait_flight2(mbedtls_ssl_context *ssl)
|
||||
{
|
||||
MBEDTLS_SSL_DEBUG_MSG(2, ("=> ssl_tls13_process_wait_flight2"));
|
||||
|
||||
if (ssl->handshake->certificate_request_sent) {
|
||||
mbedtls_ssl_handshake_set_state(ssl, MBEDTLS_SSL_CLIENT_CERTIFICATE);
|
||||
} else {
|
||||
MBEDTLS_SSL_DEBUG_MSG(2, ("skip parse certificate"));
|
||||
MBEDTLS_SSL_DEBUG_MSG(2, ("skip parse certificate verify"));
|
||||
mbedtls_ssl_handshake_set_state(ssl, MBEDTLS_SSL_CLIENT_FINISHED);
|
||||
}
|
||||
|
||||
MBEDTLS_SSL_DEBUG_MSG(2, ("<= ssl_tls13_process_wait_flight2"));
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if defined(MBEDTLS_SSL_EARLY_DATA)
|
||||
/*
|
||||
* Handler for MBEDTLS_SSL_END_OF_EARLY_DATA( WAIT_EOED )
|
||||
@ -3378,10 +3347,6 @@ int mbedtls_ssl_tls13_handshake_server_step(mbedtls_ssl_context *ssl)
|
||||
ret = ssl_tls13_write_server_finished(ssl);
|
||||
break;
|
||||
|
||||
case MBEDTLS_SSL_WAIT_FLIGHT2:
|
||||
ret = ssl_tls13_process_wait_flight2(ssl);
|
||||
break;
|
||||
|
||||
#if defined(MBEDTLS_SSL_EARLY_DATA)
|
||||
case MBEDTLS_SSL_END_OF_EARLY_DATA:
|
||||
ret = ssl_tls13_process_wait_eoed(ssl);
|
||||
|
Loading…
x
Reference in New Issue
Block a user