Rename write supported_versions ext

Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
Jerry Yu 2022-04-21 09:23:16 +08:00
parent d9436a1baa
commit e74e04af1a

@ -760,16 +760,17 @@ static int ssl_tls13_prepare_server_hello( mbedtls_ssl_context *ssl )
} }
/* /*
* ssl_tls13_write_selected_version_ext(): * ssl_tls13_write_server_hello_supported_versions_ext ():
* *
* struct { * struct {
* ProtocolVersion selected_version; * ProtocolVersion selected_version;
* } SupportedVersions; * } SupportedVersions;
*/ */
static int ssl_tls13_write_selected_version_ext( mbedtls_ssl_context *ssl, static int ssl_tls13_write_server_hello_supported_versions_ext(
unsigned char *buf, mbedtls_ssl_context *ssl,
unsigned char *end, unsigned char *buf,
size_t *out_len ) unsigned char *end,
size_t *out_len )
{ {
*out_len = 0; *out_len = 0;
@ -988,7 +989,7 @@ static int ssl_tls13_write_server_hello_body( mbedtls_ssl_context *ssl,
p += 2; p += 2;
/* Add supported_version extension */ /* Add supported_version extension */
if( ( ret = ssl_tls13_write_selected_version_ext( if( ( ret = ssl_tls13_write_server_hello_supported_versions_ext(
ssl, p, end, &output_len ) ) != 0 ) ssl, p, end, &output_len ) ) != 0 )
{ {
MBEDTLS_SSL_DEBUG_RET( 1, "ssl_tls13_write_selected_version_ext", MBEDTLS_SSL_DEBUG_RET( 1, "ssl_tls13_write_selected_version_ext",