mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-25 00:39:55 +00:00
Refine code to remove finalize_write_end_of_early_data()
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
This commit is contained in:
parent
7094f66879
commit
19d4416a45
@ -2149,16 +2149,6 @@ cleanup:
|
|||||||
* Finished. Otherwise, the client MUST NOT send an EndOfEarlyData message.
|
* 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
|
MBEDTLS_CHECK_RETURN_CRITICAL
|
||||||
static int ssl_tls13_write_end_of_early_data(mbedtls_ssl_context *ssl)
|
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(
|
mbedtls_ssl_set_outbound_transform(
|
||||||
ssl, ssl->handshake->transform_handshake);
|
ssl, ssl->handshake->transform_handshake);
|
||||||
|
|
||||||
MBEDTLS_SSL_PROC_CHK(
|
mbedtls_ssl_handshake_set_state(ssl, MBEDTLS_SSL_CLIENT_CERTIFICATE);
|
||||||
ssl_tls13_finalize_write_end_of_early_data(ssl));
|
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user