mirror of
https://github.com/espressif/mbedtls.git
synced 2025-05-16 23:17:28 +08:00
Fix various coding style and comment issues
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
This commit is contained in:
parent
6b980011e5
commit
8dc4ce76c7
@ -1266,10 +1266,10 @@ int mbedtls_ssl_tls13_finalize_client_hello(mbedtls_ssl_context *ssl)
|
|||||||
* encrypted using a different ciphersuite than the one used for
|
* encrypted using a different ciphersuite than the one used for
|
||||||
* the rejected early data.
|
* the rejected early data.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
ciphersuite_info = mbedtls_ssl_ciphersuite_from_id(
|
ciphersuite_info = mbedtls_ssl_ciphersuite_from_id(
|
||||||
ssl->session_negotiate->ciphersuite);
|
ssl->session_negotiate->ciphersuite);
|
||||||
ssl->handshake->ciphersuite_info = ciphersuite_info;
|
ssl->handshake->ciphersuite_info = ciphersuite_info;
|
||||||
|
|
||||||
/* Enable psk and psk_ephermal to make stage early happy */
|
/* Enable psk and psk_ephermal to make stage early happy */
|
||||||
ssl->handshake->key_exchange_mode =
|
ssl->handshake->key_exchange_mode =
|
||||||
MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ALL;
|
MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ALL;
|
||||||
@ -1926,7 +1926,11 @@ static int ssl_tls13_postprocess_server_hello(mbedtls_ssl_context *ssl)
|
|||||||
* selected PSK:
|
* selected PSK:
|
||||||
* - The TLS version number
|
* - The TLS version number
|
||||||
* - The selected cipher suite
|
* - The selected cipher suite
|
||||||
* - The selected ALPN [RFC7301] protocol, if any (not checked yet)
|
* - The selected ALPN [RFC7301] protocol, if any
|
||||||
|
*
|
||||||
|
* We check here that when early data is involved the server
|
||||||
|
* selected the cipher suite associated to the pre-shared key
|
||||||
|
* as it must have.
|
||||||
*/
|
*/
|
||||||
MBEDTLS_SSL_PEND_FATAL_ALERT(MBEDTLS_SSL_ALERT_MSG_ILLEGAL_PARAMETER,
|
MBEDTLS_SSL_PEND_FATAL_ALERT(MBEDTLS_SSL_ALERT_MSG_ILLEGAL_PARAMETER,
|
||||||
MBEDTLS_ERR_SSL_ILLEGAL_PARAMETER);
|
MBEDTLS_ERR_SSL_ILLEGAL_PARAMETER);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user