Remove MBEDTLS_SSL_MAX_CONTENT_LEN #4362
Labels
component-tls
enhancement
good-first-issue
Good for newcomers
size-s
Estimated task size: small (~2d)
Context
The configuration option
MBEDTLS_SSL_MAX_CONTENT_LEN
controls the "Maximum length of incoming and outgoing plaintext fragments". Since its introduction two more finer-grained options have been introduced:MBEDTLS_SSL_IN_CONTENT_LEN
andMBEDTLS_SSL_OUT_CONTENT_LEN
. These two options provide exactly the same functionality asMBEDTLS_SSL_MAX_CONTENT_LEN
however allow for more control over the input and output separately.Rationale
As there are already two other config options which together provide the same functionality as
MBEDTLS_SSL_MAX_CONTENT_LEN
it makes sense to remove it in favour of the using the other options. Having redundant config options only leads to more chance to misconfigure and misunderstand how the options should be used to provide the desired result.This option was previously kept to preserve API compatibility but with Mbed TLS 3.0 we no longer have that requirement and so this can now be removed from 3.0 onwards.
Work items for 3.0
MBEDTLS_SSL_MAX_CONTENT_LEN
fromconfig.h
.MBEDTLS_SSL_MAX_CONTENT_LEN
with appropriate references to the relevant option:MBEDTLS_SSL_IN_CONTENT_LEN
orMBEDTLS_SSL_OUT_CONTENT_LEN
.The text was updated successfully, but these errors were encountered: