Refine comments for psk related code
Change-Id: Iff5c176bb902919abc8d4fb78a185aa68704a791 Signed-off-by: XiaokangQian <xiaokang.qian@arm.com>
This commit is contained in:
parent
8698195566
commit
7c12d31813
1 changed files with 5 additions and 5 deletions
|
@ -618,7 +618,7 @@ static int ssl_tls13_write_psk_key_exchange_modes_ext( mbedtls_ssl_context *ssl,
|
||||||
*out_len = 0;
|
*out_len = 0;
|
||||||
|
|
||||||
/* Skip writing extension if no PSK key exchange mode
|
/* Skip writing extension if no PSK key exchange mode
|
||||||
* is enabled in the config or there is no PSK to offer.
|
* is enabled in the config.
|
||||||
*/
|
*/
|
||||||
if( !mbedtls_ssl_conf_tls13_some_psk_enabled( ssl ) )
|
if( !mbedtls_ssl_conf_tls13_some_psk_enabled( ssl ) )
|
||||||
{
|
{
|
||||||
|
@ -733,12 +733,12 @@ int mbedtls_ssl_tls13_write_pre_shared_key_ext_without_binders(
|
||||||
return( 0 );
|
return( 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( psk_type == MBEDTLS_SSL_TLS1_3_PSK_EXTERNAL )
|
||||||
|
{
|
||||||
/*
|
/*
|
||||||
* Ciphersuite list
|
* Ciphersuite list
|
||||||
*/
|
*/
|
||||||
ciphersuites = ssl->conf->ciphersuite_list;
|
ciphersuites = ssl->conf->ciphersuite_list;
|
||||||
if( psk_type == MBEDTLS_SSL_TLS1_3_PSK_EXTERNAL )
|
|
||||||
{
|
|
||||||
for( int i = 0; ciphersuites[i] != 0; i++ )
|
for( int i = 0; ciphersuites[i] != 0; i++ )
|
||||||
{
|
{
|
||||||
ciphersuite_info = mbedtls_ssl_ciphersuite_from_id(
|
ciphersuite_info = mbedtls_ssl_ciphersuite_from_id(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue