fix coding style issues

Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
Jerry Yu 2022-09-06 09:16:35 +08:00
parent 8253486c4f
commit fd310ebf2d
2 changed files with 4 additions and 7 deletions

View file

@ -689,7 +689,7 @@ static int ssl_tls13_get_psk_to_offer(
#if defined(MBEDTLS_SSL_SESSION_TICKETS)
/* Check if a ticket has been configured. */
if( ssl->session_negotiate != NULL &&
if( ssl->session_negotiate != NULL &&
ssl->session_negotiate->ticket != NULL )
{
#if defined(MBEDTLS_HAVE_TIME)

View file

@ -132,7 +132,7 @@ static int ssl_tls13_offered_psks_check_identity_match_ticket(
size_t identity_len,
uint32_t obfuscated_ticket_age )
{
int ret;
int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
unsigned char *ticket_buffer;
((void) obfuscated_ticket_age);
@ -146,12 +146,9 @@ static int ssl_tls13_offered_psks_check_identity_match_ticket(
ssl->conf->f_ticket_parse == NULL ? "NOT " : "",
ssl->conf->f_ticket_write == NULL ? "NOT " : "" ) );
if( ssl->conf->f_ticket_parse == NULL ||
identity_len == 0 )
{
/* Ticket parser is not configured, Skip */
/* Ticket parser is not configured, Skip */
if( ssl->conf->f_ticket_parse == NULL || identity_len == 0 )
return( 0 );
}
/* We create a copy of the encrypted ticket since decrypting
* it into the same buffer will wipe-out the original content.