From eab1023dbf9ffe9ae986da7fc053b2ee51c5b8bd Mon Sep 17 00:00:00 2001 From: XiaokangQian Date: Mon, 25 Oct 2021 07:38:31 +0000 Subject: [PATCH] Fix some compiling errors for name mismatch Signed-off-by: XiaokangQian --- library/ssl_tls13_client.c | 2 +- library/ssl_tls13_generic.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/library/ssl_tls13_client.c b/library/ssl_tls13_client.c index a0f0c9c98..b64d3269d 100644 --- a/library/ssl_tls13_client.c +++ b/library/ssl_tls13_client.c @@ -1620,7 +1620,7 @@ static int ssl_tls1_3_process_server_finished( mbedtls_ssl_context *ssl ) */ static int ssl_tls13_write_client_finished( mbedtls_ssl_context *ssl ) { - return ( mbedtls_ssl_tls1_3_finished_out_process( ssl ) ); + return ( mbedtls_ssl_tls13_finished_out_process( ssl ) ); } /* diff --git a/library/ssl_tls13_generic.c b/library/ssl_tls13_generic.c index a42ede1e3..d1a20dfd1 100644 --- a/library/ssl_tls13_generic.c +++ b/library/ssl_tls13_generic.c @@ -1037,7 +1037,7 @@ static int ssl_finished_out_write( mbedtls_ssl_context *ssl, static int ssl_finished_out_postprocess( mbedtls_ssl_context *ssl ); -int mbedtls_ssl_tls1_3_finished_out_process( mbedtls_ssl_context *ssl ) +int mbedtls_ssl_tls13_finished_out_process( mbedtls_ssl_context *ssl ) { int ret; unsigned char *buf; @@ -1076,7 +1076,7 @@ static int ssl_finished_out_prepare( mbedtls_ssl_context *ssl ) int ret; /* Compute transcript of handshake up to now. */ - ret = mbedtls_ssl_tls1_3_calc_finished( ssl, + ret = mbedtls_ssl_tls1_3_calculate_expected_finished( ssl, ssl->handshake->state_local.finished_out.digest, sizeof( ssl->handshake->state_local.finished_out.digest ), &ssl->handshake->state_local.finished_out.digest_len,