1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-30 22:43:08 +03:00

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

View File

@ -760,13 +760,14 @@ 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(
mbedtls_ssl_context *ssl,
unsigned char *buf, unsigned char *buf,
unsigned char *end, unsigned char *end,
size_t *out_len ) size_t *out_len )
@ -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",