diff options
author | Jerry Yu <jerry.h.yu@arm.com> | 2022-12-06 16:58:36 +0800 |
---|---|---|
committer | Jerry Yu <jerry.h.yu@arm.com> | 2022-12-06 16:58:36 +0800 |
commit | 39da9857df4f261b9efc54b77c5cbc7e1aa5d059 (patch) | |
tree | 5e83cfaa6ad71143355a62ce19611525261ae5f3 | |
parent | d146a37d564f2ff72499d42453f7a77a7f50d236 (diff) | |
download | mbedtls-39da9857df4f261b9efc54b77c5cbc7e1aa5d059.tar.gz |
remove limitation of max_early_data_size
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
-rw-r--r-- | library/ssl_tls.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/library/ssl_tls.c b/library/ssl_tls.c index 227f8841d..65af6b62a 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c @@ -1709,9 +1709,7 @@ void mbedtls_ssl_tls13_conf_early_data( mbedtls_ssl_config *conf, void mbedtls_ssl_tls13_conf_max_early_data_size( mbedtls_ssl_config *conf, uint32_t max_early_data_size ) { - conf->max_early_data_size = - max_early_data_size < MBEDTLS_SSL_MAX_EARLY_DATA_SIZE ? - max_early_data_size : MBEDTLS_SSL_MAX_EARLY_DATA_SIZE; + conf->max_early_data_size = max_early_data_size; } #endif /* MBEDTLS_SSL_SRV_C */ |