mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-02 07:20:26 +00:00
Update documents and check
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
This commit is contained in:
parent
de95604f6c
commit
402bb1ee90
@ -112,10 +112,6 @@
|
|||||||
#undef MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
#undef MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
||||||
#undef MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
#undef MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
|
||||||
#undef MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
#undef MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !defined(MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED) && \
|
|
||||||
!defined(MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED)
|
|
||||||
#undef MBEDTLS_SSL_EARLY_DATA
|
#undef MBEDTLS_SSL_EARLY_DATA
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -842,8 +842,13 @@
|
|||||||
"but no key exchange methods defined with MBEDTLS_KEY_EXCHANGE_xxxx"
|
"but no key exchange methods defined with MBEDTLS_KEY_EXCHANGE_xxxx"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Early data requires MBEDTLS_SSL_SESSION_TICKETS defined */
|
/* Early data requires MBEDTLS_SSL_SESSION_TICKETS and SOME_PSK related
|
||||||
#if defined(MBEDTLS_SSL_EARLY_DATA) && !defined(MBEDTLS_SSL_SESSION_TICKETS)
|
* mode defined
|
||||||
|
*/
|
||||||
|
#if defined(MBEDTLS_SSL_EARLY_DATA) && \
|
||||||
|
( !defined(MBEDTLS_SSL_SESSION_TICKETS) || \
|
||||||
|
( !defined(MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED) && \
|
||||||
|
!defined(MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED) ) )
|
||||||
#error "MBEDTLS_SSL_EARLY_DATA defined, but not all prerequisites"
|
#error "MBEDTLS_SSL_EARLY_DATA defined, but not all prerequisites"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1637,12 +1637,12 @@
|
|||||||
*
|
*
|
||||||
* Enable support for RFC 8446 TLS 1.3 early data.
|
* Enable support for RFC 8446 TLS 1.3 early data.
|
||||||
*
|
*
|
||||||
* Requires: MBEDTLS_SSL_SESSION_TICKETS
|
* 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
|
* Comment this to disable support for early data. If MBEDTLS_SSL_PROTO_TLS1_3
|
||||||
* is not enabled or both MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED and
|
* is not enabled, this option does not have any effect on the build.
|
||||||
* MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED are disabled,
|
|
||||||
* this option does not have any effect on the build.
|
|
||||||
*
|
*
|
||||||
* This feature is experimental, not completed and thus not ready for
|
* This feature is experimental, not completed and thus not ready for
|
||||||
* production.
|
* production.
|
||||||
|
@ -24,7 +24,6 @@
|
|||||||
|
|
||||||
/* Enable TLS 1.3 and core 1.3 features */
|
/* Enable TLS 1.3 and core 1.3 features */
|
||||||
#define MBEDTLS_SSL_PROTO_TLS1_3
|
#define MBEDTLS_SSL_PROTO_TLS1_3
|
||||||
#define MBEDTLS_SSL_EARLY_DATA
|
|
||||||
#define MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE
|
#define MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE
|
||||||
|
|
||||||
/* Disable TLS 1.2 and 1.2-specific features */
|
/* Disable TLS 1.2 and 1.2-specific features */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user