Update document base on comments
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
diff --git a/include/mbedtls/mbedtls_config.h b/include/mbedtls/mbedtls_config.h
index 93ca9b5..e3bae2c 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 0804746..1ae441c 100644
--- a/include/mbedtls/ssl.h
+++ b/include/mbedtls/ssl.h
@@ -802,6 +802,15 @@
#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