Rename the finalize_client{server}_hello()
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
diff --git a/library/ssl_client.c b/library/ssl_client.c
index 7ec43f5..963f8bb 100644
--- a/library/ssl_client.c
+++ b/library/ssl_client.c
@@ -964,14 +964,14 @@
/*
* Set next state. Note that if TLS 1.3 is proposed, this may be
- * overwritten by mbedtls_ssl_tls13_finalize_write_client_hello().
+ * overwritten by mbedtls_ssl_tls13_finalize_client_hello().
*/
mbedtls_ssl_handshake_set_state(ssl, MBEDTLS_SSL_SERVER_HELLO);
#if defined(MBEDTLS_SSL_PROTO_TLS1_3)
if (ssl->handshake->min_tls_version <= MBEDTLS_SSL_VERSION_TLS1_3 &&
MBEDTLS_SSL_VERSION_TLS1_3 <= ssl->tls_version) {
- ret = mbedtls_ssl_tls13_finalize_write_client_hello(ssl);
+ ret = mbedtls_ssl_tls13_finalize_client_hello(ssl);
}
#endif
}
diff --git a/library/ssl_misc.h b/library/ssl_misc.h
index 29a60ec..ef05dca 100644
--- a/library/ssl_misc.h
+++ b/library/ssl_misc.h
@@ -2741,7 +2741,7 @@
#endif /* MBEDTLS_SSL_PROTO_TLS1_3 && MBEDTLS_SSL_SESSION_TICKETS */
#if defined(MBEDTLS_SSL_CLI_C) && defined(MBEDTLS_SSL_PROTO_TLS1_3)
-int mbedtls_ssl_tls13_finalize_write_client_hello(mbedtls_ssl_context *ssl);
+int mbedtls_ssl_tls13_finalize_client_hello(mbedtls_ssl_context *ssl);
#endif
#endif /* ssl_misc.h */
diff --git a/library/ssl_tls13_client.c b/library/ssl_tls13_client.c
index 6238499..8970dd4 100644
--- a/library/ssl_tls13_client.c
+++ b/library/ssl_tls13_client.c
@@ -1231,7 +1231,7 @@
return 0;
}
-int mbedtls_ssl_tls13_finalize_write_client_hello(mbedtls_ssl_context *ssl)
+int mbedtls_ssl_tls13_finalize_client_hello(mbedtls_ssl_context *ssl)
{
((void) ssl);
diff --git a/library/ssl_tls13_server.c b/library/ssl_tls13_server.c
index ef90f69..81c289a 100644
--- a/library/ssl_tls13_server.c
+++ b/library/ssl_tls13_server.c
@@ -2100,7 +2100,7 @@
}
MBEDTLS_CHECK_RETURN_CRITICAL
-static int ssl_tls13_finalize_write_server_hello(mbedtls_ssl_context *ssl)
+static int ssl_tls13_finalize_server_hello(mbedtls_ssl_context *ssl)
{
int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
ret = mbedtls_ssl_tls13_compute_handshake_transform(ssl);
@@ -2140,7 +2140,7 @@
MBEDTLS_SSL_PROC_CHK(mbedtls_ssl_finish_handshake_msg(
ssl, buf_len, msg_len));
- MBEDTLS_SSL_PROC_CHK(ssl_tls13_finalize_write_server_hello(ssl));
+ MBEDTLS_SSL_PROC_CHK(ssl_tls13_finalize_server_hello(ssl));
#if defined(MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE)
/* The server sends a dummy change_cipher_spec record immediately