Switch outbound back to handshake key after end_of_early_data

Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
This commit is contained in:
Xiaokang Qian 2022-12-15 14:55:35 +00:00
parent bf09376bda
commit da8402dde6

View file

@ -2185,6 +2185,10 @@ static int ssl_tls13_write_end_of_early_data(mbedtls_ssl_context *ssl)
MBEDTLS_SSL_PROC_CHK(
mbedtls_ssl_finish_handshake_msg(ssl, buf_len, 0));
/* Switch outbound back to handshake key after end_of_early_data */
mbedtls_ssl_set_outbound_transform(
ssl, ssl->handshake->transform_handshake);
}
MBEDTLS_SSL_PROC_CHK(