mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-28 00:21:48 +03:00
tls13: cli: write Record Size Limit ext in ClientHello
- add the support in library - update corresponding test case Signed-off-by: Yanray Wang <yanray.wang@arm.com>
This commit is contained in:
committed by
Waleed Elmelegy
parent
faf70bdf9d
commit
42017cd4c9
@ -1160,6 +1160,15 @@ int mbedtls_ssl_tls13_write_client_hello_exts(mbedtls_ssl_context *ssl,
|
||||
}
|
||||
p += ext_len;
|
||||
|
||||
#if defined(MBEDTLS_SSL_RECORD_SIZE_LIMIT)
|
||||
ret = mbedtls_ssl_tls13_write_record_size_limit_ext(
|
||||
ssl, MBEDTLS_SSL_IN_CONTENT_LEN, p, end, &ext_len);
|
||||
if (ret != 0) {
|
||||
return ret;
|
||||
}
|
||||
p += ext_len;
|
||||
#endif
|
||||
|
||||
#if defined(MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_SOME_EPHEMERAL_ENABLED)
|
||||
if (mbedtls_ssl_conf_tls13_some_ephemeral_enabled(ssl)) {
|
||||
ret = ssl_tls13_write_key_share_ext(ssl, p, end, &ext_len);
|
||||
|
Reference in New Issue
Block a user