diff --git a/include/mbedtls/mbedtls_config.h b/include/mbedtls/mbedtls_config.h index eea7f09808..3df16777b0 100644 --- a/include/mbedtls/mbedtls_config.h +++ b/include/mbedtls/mbedtls_config.h @@ -1581,7 +1581,9 @@ /** * \def MBEDTLS_SSL_TLS1_3_DEFAULT_NEW_SESSION_TICKETS * - * Default number of NewSessionTicket. This is not used in TLS 1.2. + * Default number of NewSessionTicket messages to be sent by a TLS 1.3 server + * after handshake completion. This is not used in TLS 1.2 and relevant only if + * the MBEDTLS_SSL_SESSION_TICKETS option is enabled. * */ #define MBEDTLS_SSL_TLS1_3_DEFAULT_NEW_SESSION_TICKETS 1 diff --git a/library/ssl_misc.h b/library/ssl_misc.h index 7e060d3348..e2546ffe97 100644 --- a/library/ssl_misc.h +++ b/library/ssl_misc.h @@ -625,7 +625,7 @@ struct mbedtls_ssl_handshake_params uint8_t tls13_kex_modes; /*!< Key exchange modes supported by the client */ #endif #if defined(MBEDTLS_SSL_SESSION_TICKETS) - int new_session_tickets_count; /*!< number of session tickets */ + uint16_t new_session_tickets_count; /*!< number of session tickets */ #endif #endif /* MBEDTLS_SSL_SRV_C */ diff --git a/library/ssl_tls.c b/library/ssl_tls.c index de6bae2833..c9aea4857b 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c @@ -674,7 +674,6 @@ static void ssl_handshake_params_init( mbedtls_ssl_handshake_params *handshake ) !defined(MBEDTLS_SSL_KEEP_PEER_CERTIFICATE) mbedtls_pk_init( &handshake->peer_pubkey ); #endif - } void mbedtls_ssl_transform_init( mbedtls_ssl_transform *transform )