mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Write key_share base on key_exchange mode.
In ServerHello, write key share should base on key_exchange mode, not base on configuration. Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
@ -1803,7 +1803,7 @@ static int ssl_tls13_write_server_hello_body( mbedtls_ssl_context *ssl,
|
|||||||
}
|
}
|
||||||
p += output_len;
|
p += output_len;
|
||||||
|
|
||||||
if( mbedtls_ssl_conf_tls13_some_ephemeral_enabled( ssl ) )
|
if( mbedtls_ssl_tls13_key_exchange_mode_with_ephemeral( ssl ) )
|
||||||
{
|
{
|
||||||
if( is_hrr )
|
if( is_hrr )
|
||||||
ret = ssl_tls13_write_hrr_key_share_ext( ssl, p, end, &output_len );
|
ret = ssl_tls13_write_hrr_key_share_ext( ssl, p, end, &output_len );
|
||||||
|
Reference in New Issue
Block a user