mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-10 15:45:34 +00:00
Change prerequisites of MBEDTLS_SSL_EARLY_DATA and add related check
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
This commit is contained in:
parent
72de95dcf5
commit
95a0730f17
@ -842,6 +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 PSK related mode defined */
|
||||||
|
#if defined(MBEDTLS_SSL_EARLY_DATA) && \
|
||||||
|
( !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"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(MBEDTLS_SSL_PROTO_DTLS) && \
|
#if defined(MBEDTLS_SSL_PROTO_DTLS) && \
|
||||||
!defined(MBEDTLS_SSL_PROTO_TLS1_2)
|
!defined(MBEDTLS_SSL_PROTO_TLS1_2)
|
||||||
#error "MBEDTLS_SSL_PROTO_DTLS defined, but not all prerequisites"
|
#error "MBEDTLS_SSL_PROTO_DTLS defined, but not all prerequisites"
|
||||||
|
@ -1640,6 +1640,10 @@
|
|||||||
* Requires: MBEDTLS_SSL_PROTO_TLS1_3
|
* Requires: MBEDTLS_SSL_PROTO_TLS1_3
|
||||||
*
|
*
|
||||||
* Comment this to disable support for early data.
|
* Comment this to disable support for early data.
|
||||||
|
*
|
||||||
|
* This feature is experimental, not completed and thus not ready for
|
||||||
|
* production.
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
//#define MBEDTLS_SSL_EARLY_DATA
|
//#define MBEDTLS_SSL_EARLY_DATA
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user