Address some format issues
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
diff --git a/library/ssl_tls13_client.c b/library/ssl_tls13_client.c
index 46c7c45..f68b240 100644
--- a/library/ssl_tls13_client.c
+++ b/library/ssl_tls13_client.c
@@ -1182,8 +1182,10 @@
return( ret );
p += ext_len;
- /* Initializes the status to `indication sent`. Changes it to `accepted`
- * when `early_data` is received in EncryptedExtesion. */
+ /* Initializes the status to `indication sent`. It will be updated to
+ * `accepted` or `rejected` depend on whether the EncryptedExtension
+ * message will contain an early data indication extension or not.
+ */
ssl->early_data_status = MBEDTLS_SSL_EARLY_DATA_STATUS_INDICATION_SENT;
}
else
@@ -2540,7 +2542,7 @@
{
case MBEDTLS_TLS_EXT_EARLY_DATA:
MBEDTLS_SSL_DEBUG_MSG( 4, ( "early_data extension received" ) );
- if( extension_data_len == 4 && ssl->session != NULL)
+ if( extension_data_len == 4 && ssl->session != NULL )
ssl->session->ticket_flags |=
MBEDTLS_SSL_TICKET_ALLOW_EARLY_DATA;
break;