Address some format issues
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
This commit is contained in:
parent
f447e8a8d3
commit
a042b8406d
2 changed files with 5 additions and 7 deletions
|
@ -77,10 +77,6 @@
|
||||||
/* Faked handshake message identity for HelloRetryRequest. */
|
/* Faked handshake message identity for HelloRetryRequest. */
|
||||||
#define MBEDTLS_SSL_TLS1_3_HS_HELLO_RETRY_REQUEST ( -MBEDTLS_SSL_HS_SERVER_HELLO )
|
#define MBEDTLS_SSL_TLS1_3_HS_HELLO_RETRY_REQUEST ( -MBEDTLS_SSL_HS_SERVER_HELLO )
|
||||||
|
|
||||||
/* Early data indication sent or not */
|
|
||||||
#define MBEDTLS_SSL_EARLY_DATA_OFF 0
|
|
||||||
#define MBEDTLS_SSL_EARLY_DATA_ON 1
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Internal identity of handshake extensions
|
* Internal identity of handshake extensions
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1182,8 +1182,10 @@ int mbedtls_ssl_tls13_write_client_hello_exts( mbedtls_ssl_context *ssl,
|
||||||
return( ret );
|
return( ret );
|
||||||
p += ext_len;
|
p += ext_len;
|
||||||
|
|
||||||
/* Initializes the status to `indication sent`. Changes it to `accepted`
|
/* Initializes the status to `indication sent`. It will be updated to
|
||||||
* when `early_data` is received in EncryptedExtesion. */
|
* `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;
|
ssl->early_data_status = MBEDTLS_SSL_EARLY_DATA_STATUS_INDICATION_SENT;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -2540,7 +2542,7 @@ static int ssl_tls13_parse_new_session_ticket_exts( mbedtls_ssl_context *ssl,
|
||||||
{
|
{
|
||||||
case MBEDTLS_TLS_EXT_EARLY_DATA:
|
case MBEDTLS_TLS_EXT_EARLY_DATA:
|
||||||
MBEDTLS_SSL_DEBUG_MSG( 4, ( "early_data extension received" ) );
|
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 |=
|
ssl->session->ticket_flags |=
|
||||||
MBEDTLS_SSL_TICKET_ALLOW_EARLY_DATA;
|
MBEDTLS_SSL_TICKET_ALLOW_EARLY_DATA;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue