From 9ca79ddd9af3d4e3f78cb6e611a3117a71b2198c Mon Sep 17 00:00:00 2001 From: Mason Tran Date: Mon, 28 Dec 2020 12:33:14 -0600 Subject: [PATCH] [efr32] conditional definition for MBEDTLS_SSL_MAX_CONTENT_LEN (#6004) --- examples/platforms/efr32/src/mbedtls_config.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/platforms/efr32/src/mbedtls_config.h b/examples/platforms/efr32/src/mbedtls_config.h index c56ab3bb7..c9035a6c1 100644 --- a/examples/platforms/efr32/src/mbedtls_config.h +++ b/examples/platforms/efr32/src/mbedtls_config.h @@ -14,7 +14,11 @@ // Default: 768 // The size configured here determines the size of each of the two // 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 // Enable support for RFC 6066 max_fragment_length extension in SSL. // Default: 1