Skip to content

Commit

Permalink
fix code style failure
Browse files Browse the repository at this point in the history
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
  • Loading branch information
yuhaoth committed Oct 31, 2023
1 parent e164d4d commit be4badd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions library/ssl_tls13_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -2217,9 +2217,9 @@ static int ssl_tls13_process_encrypted_extensions(mbedtls_ssl_context *ssl)
* selected the cipher suite associated to the pre-shared key
* as it must have.
*/
if ((handshake->selected_identity != 0 ||
handshake->ciphersuite_info->id !=
ssl->session_negotiate->ciphersuite)) {
if (handshake->selected_identity != 0 ||
handshake->ciphersuite_info->id !=
ssl->session_negotiate->ciphersuite) {

MBEDTLS_SSL_PEND_FATAL_ALERT(
MBEDTLS_SSL_ALERT_MSG_ILLEGAL_PARAMETER,
Expand Down
5 changes: 2 additions & 3 deletions library/ssl_tls13_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,7 @@ static int ssl_tls13_offered_psks_check_identity_match_ticket(
mbedtls_free(ticket_buffer);

#if defined(MBEDTLS_SSL_PROTO_TLS1_2)
if (ret == 0 && session->tls_version != MBEDTLS_SSL_VERSION_TLS1_3)
{
if (ret == 0 && session->tls_version != MBEDTLS_SSL_VERSION_TLS1_3) {
MBEDTLS_SSL_DEBUG_MSG(3, ("ticket version invalid."));
ret = MBEDTLS_ERR_SSL_BAD_PROTOCOL_VERSION;
}
Expand Down Expand Up @@ -1811,7 +1810,7 @@ static void ssl_tls13_update_early_data_status(mbedtls_ssl_context *ssl)
}

if (handshake->ciphersuite_info->id !=
ssl->session_negotiate->ciphersuite){
ssl->session_negotiate->ciphersuite) {
MBEDTLS_SSL_DEBUG_MSG(
1, ("EarlyData: rejected, selected ciphersuite mismatch."));
return;
Expand Down

0 comments on commit be4badd

Please sign in to comment.