fix various issues
- disable reuse of max_early_data_size.
- make conf_early_data available for server.
- various comment issues
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
diff --git a/include/mbedtls/mbedtls_config.h b/include/mbedtls/mbedtls_config.h
index f33ce60..2172072 100644
--- a/include/mbedtls/mbedtls_config.h
+++ b/include/mbedtls/mbedtls_config.h
@@ -1664,8 +1664,6 @@
* MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED or
* MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
*
-* Requires: MBEDTLS_SSL_MAX_EARLY_DATA_SIZE >= 0
-*
* Comment this to disable support for early data. If MBEDTLS_SSL_PROTO_TLS1_3
* is not enabled, this option does not have any effect on the build.
*
@@ -1678,9 +1676,13 @@
/**
* \def MBEDTLS_SSL_MAX_EARLY_DATA_SIZE
*
- * The maximium amount of 0-RTT data(RFC8446 section 4.6.1).
- * It only works when MBEDTLS_SSL_EARLY_DATA is enabled and MUST be in range
- * 1...UINT32_MAX
+ * The default maximum amount of 0-RTT data. See the documentation of
+ * \c mbedtls_ssl_tls13_conf_max_early_data_size() for more information.
+ *
+ * It must be positive and smaller than UINT32_MAX.
+ *
+ * If MBEDTLS_SSL_EARLY_DATA is not defined, this default value does not
+ * have any impact on the build.
*
* This feature is experimental, not completed and thus not ready for
* production.