mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-28 00:21:48 +03:00
Move the place where call set_outbound_transform to switch handshake key
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
This commit is contained in:
@ -2235,9 +2235,11 @@ static int ssl_tls13_write_end_of_early_data(mbedtls_ssl_context *ssl)
|
|||||||
MBEDTLS_SSL_PROC_CHK(
|
MBEDTLS_SSL_PROC_CHK(
|
||||||
mbedtls_ssl_finish_handshake_msg(ssl, buf_len, 0));
|
mbedtls_ssl_finish_handshake_msg(ssl, buf_len, 0));
|
||||||
|
|
||||||
/* Switch outbound back to handshake key after end_of_early_data */
|
/* TODO: Currently switch outbound back to handshake key in the case of
|
||||||
mbedtls_ssl_set_outbound_transform(
|
* MBEDTLS_SSL_CLIENT_CERTIFICATE. If we refine the coordinate function
|
||||||
ssl, ssl->handshake->transform_handshake);
|
* of client certificate state machine, we have to move the switch
|
||||||
|
* outbound function.
|
||||||
|
*/
|
||||||
|
|
||||||
mbedtls_ssl_handshake_set_state(ssl, MBEDTLS_SSL_CLIENT_CERTIFICATE);
|
mbedtls_ssl_handshake_set_state(ssl, MBEDTLS_SSL_CLIENT_CERTIFICATE);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user