Add default values for conf->*early_data*
- early_data default to disable - max_early_data_size default to built-in value Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
parent
39da9857df
commit
6ee56aa18f
1 changed files with 9 additions and 0 deletions
|
@ -5126,6 +5126,15 @@ int mbedtls_ssl_config_defaults( mbedtls_ssl_config *conf,
|
|||
#endif
|
||||
|
||||
#if defined(MBEDTLS_SSL_PROTO_TLS1_3)
|
||||
|
||||
#if defined(MBEDTLS_SSL_EARLY_DATA)
|
||||
mbedtls_ssl_tls13_conf_early_data( conf, MBEDTLS_SSL_EARLY_DATA_DISABLED );
|
||||
#if defined(MBEDTLS_SSL_SRV_C)
|
||||
mbedtls_ssl_tls13_conf_max_early_data_size(
|
||||
conf, MBEDTLS_SSL_MAX_EARLY_DATA_SIZE );
|
||||
#endif
|
||||
#endif /* MBEDTLS_SSL_EARLY_DATA */
|
||||
|
||||
#if defined(MBEDTLS_SSL_SRV_C) && defined(MBEDTLS_SSL_SESSION_TICKETS)
|
||||
mbedtls_ssl_conf_new_session_tickets(
|
||||
conf, MBEDTLS_SSL_TLS1_3_DEFAULT_NEW_SESSION_TICKETS );
|
||||
|
|
Loading…
Reference in a new issue