Skip to content

Commit

Permalink
Undefined MBEDTLS_SSL_EARLY_DATA when tls13 ephemeral only
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaokang Qian <[email protected]>
  • Loading branch information
xkqian committed Oct 28, 2022
1 parent 1e28fe1 commit a8eeda0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/mbedtls/build_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@
#undef MBEDTLS_SSL_EARLY_DATA
#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
#endif

#if defined(MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED) || \
defined(MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED)
#define MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_SOME_PSK_ENABLED
Expand Down

0 comments on commit a8eeda0

Please sign in to comment.