diff --git a/library/ssl_tls13_client.c b/library/ssl_tls13_client.c index 8615d90628..8f5e0fcf6e 100644 --- a/library/ssl_tls13_client.c +++ b/library/ssl_tls13_client.c @@ -2149,16 +2149,6 @@ cleanup: * Finished. Otherwise, the client MUST NOT send an EndOfEarlyData message. */ -MBEDTLS_CHECK_RETURN_CRITICAL -static int ssl_tls13_finalize_write_end_of_early_data( - mbedtls_ssl_context *ssl) -{ - - mbedtls_ssl_handshake_set_state(ssl, MBEDTLS_SSL_CLIENT_CERTIFICATE); - - return 0; -} - MBEDTLS_CHECK_RETURN_CRITICAL static int ssl_tls13_write_end_of_early_data(mbedtls_ssl_context *ssl) { @@ -2180,8 +2170,7 @@ static int ssl_tls13_write_end_of_early_data(mbedtls_ssl_context *ssl) mbedtls_ssl_set_outbound_transform( ssl, ssl->handshake->transform_handshake); - MBEDTLS_SSL_PROC_CHK( - ssl_tls13_finalize_write_end_of_early_data(ssl)); + mbedtls_ssl_handshake_set_state(ssl, MBEDTLS_SSL_CLIENT_CERTIFICATE); cleanup: