From 29ee43c0e17d4c1a7bf3b1c47d54e14d8ae73bb7 Mon Sep 17 00:00:00 2001 From: Xiaokang Qian Date: Wed, 9 Nov 2022 07:39:57 +0000 Subject: [PATCH] Update document base on comments Signed-off-by: Xiaokang Qian --- include/mbedtls/mbedtls_config.h | 3 ++- include/mbedtls/ssl.h | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/include/mbedtls/mbedtls_config.h b/include/mbedtls/mbedtls_config.h index 93ca9b58a..e3bae2cf8 100644 --- a/include/mbedtls/mbedtls_config.h +++ b/include/mbedtls/mbedtls_config.h @@ -1637,7 +1637,8 @@ * * Enable support for RFC 8446 TLS 1.3 early data. * -* Requires: MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED or +* Requires: MBEDTLS_SSL_SESSION_TICKETS and either +* MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED or * MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED * * Comment this to disable support for early data. If MBEDTLS_SSL_PROTO_TLS1_3 diff --git a/include/mbedtls/ssl.h b/include/mbedtls/ssl.h index 080474613..1ae441caa 100644 --- a/include/mbedtls/ssl.h +++ b/include/mbedtls/ssl.h @@ -802,6 +802,15 @@ typedef struct mbedtls_ssl_flight_item mbedtls_ssl_flight_item; #endif #if defined(MBEDTLS_SSL_EARLY_DATA) && defined(MBEDTLS_SSL_CLI_C) +/* Define the status of early data. + * MBEDTLS_SSL_EARLY_DATA_STATUS_UNKNOWN : Initilized. + * MBEDTLS_SSL_EARLY_DATA_STATUS_INDICATION_SENT: Have sent early data + * indication in client hello successfully. + * MBEDTLS_SSL_EARLY_DATA_STATUS_NOT_SENT: Have sent client hello without + * data indication. + * MBEDTLS_SSL_EARLY_DATA_STATUS_REJECTED: Server side reject the early data. + * MBEDTLS_SSL_EARLY_DATA_STATUS_ACCEPTED: Server side accept the early data. + */ #define MBEDTLS_SSL_EARLY_DATA_STATUS_UNKNOWN 0 #define MBEDTLS_SSL_EARLY_DATA_STATUS_NOT_SENT 1 #define MBEDTLS_SSL_EARLY_DATA_STATUS_INDICATION_SENT 2