Skip to content

Commit

Permalink
Minor doc'n cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Hanno Becker <hanno.becker@arm.com>
  • Loading branch information
Hanno Becker committed Aug 3, 2021
1 parent 578054d commit e361123
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions library/ssl_tls13_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -1065,16 +1065,13 @@ static int ssl_parse_max_fragment_length_ext( mbedtls_ssl_context *ssl,
#endif /* MBEDTLS_SSL_MAX_FRAGMENT_LENGTH */

#if defined(MBEDTLS_KEY_EXCHANGE_SOME_PSK_ENABLED)
/*
* ssl_parse_key_exchange_modes_ext( ) structure:
*
* enum { psk_ke( 0 ), psk_dhe_ke( 1 ), ( 255 ) } PskKeyExchangeMode;
/* From RFC 8446:
*
* struct {
* PskKeyExchangeMode ke_modes<1..255>;
* } PskKeyExchangeModes;
* enum { psk_ke(0), psk_dhe_ke(1), (255) } PskKeyExchangeMode;
* struct {
* PskKeyExchangeMode ke_modes<1..255>;
* } PskKeyExchangeModes;
*/

static int ssl_parse_key_exchange_modes_ext( mbedtls_ssl_context *ssl,
const unsigned char *buf,
size_t len )
Expand Down Expand Up @@ -1112,7 +1109,7 @@ static int ssl_parse_key_exchange_modes_ext( mbedtls_ssl_context *ssl,
}

ssl->handshake->key_exchange_modes = psk_key_exchange_modes;
return ( 0 );
return( 0 );
}
#endif /* MBEDTLS_KEY_EXCHANGE_SOME_PSK_ENABLED */

Expand Down

0 comments on commit e361123

Please sign in to comment.