[efr32] conditional definition for MBEDTLS_SSL_MAX_CONTENT_LEN (#6004)

This commit is contained in:
Mason Tran
2020-12-28 10:33:14 -08:00
committed by GitHub
parent 2c3bcbe804
commit 9ca79ddd9a
@@ -14,7 +14,11 @@
// <i> Default: 768
// <i> The size configured here determines the size of each of the two
// <i> internal I/O buffers used in mbedTLS when sending and receiving data.
#define MBEDTLS_SSL_MAX_CONTENT_LEN 768
#if OPENTHREAD_CONFIG_COAP_SECURE_API_ENABLE
#define MBEDTLS_SSL_MAX_CONTENT_LEN 900 /**< Maximum fragment length in bytes */
#else
#define MBEDTLS_SSL_MAX_CONTENT_LEN 768 /**< Maximum fragment length in bytes */
#endif
// <q SL_MBEDTLS_SSL_MAX_FRAGMENT_LENGTH> Enable support for RFC 6066 max_fragment_length extension in SSL.
// <i> Default: 1