mirror of
https://github.com/Dasharo/zephyr.git
synced 2026-03-06 14:57:20 -08:00
modules: mbedtls: Fix buffer size configs for 3.0
Mbed TLS 3.0 changes the configuration defines used to determine the buffer size used for TLS. We were still setting the old one, which was causing Mbed TLS to revert back to the large default buffer size. Set both the in and out buffer sizes to match the config setting. A future improvement may be to separate this into two configurations within the Zephyr config. Signed-off-by: David Brown <david.brown@linaro.org>
This commit is contained in:
@@ -407,7 +407,8 @@
|
||||
#define MBEDTLS_PK_C
|
||||
#endif
|
||||
|
||||
#define MBEDTLS_SSL_MAX_CONTENT_LEN CONFIG_MBEDTLS_SSL_MAX_CONTENT_LEN
|
||||
#define MBEDTLS_SSL_IN_CONTENT_LEN CONFIG_MBEDTLS_SSL_MAX_CONTENT_LEN
|
||||
#define MBEDTLS_SSL_OUT_CONTENT_LEN CONFIG_MBEDTLS_SSL_MAX_CONTENT_LEN
|
||||
|
||||
/* Enable OpenThread optimizations. */
|
||||
#if defined(CONFIG_MBEDTLS_OPENTHREAD_OPTIMIZATIONS_ENABLED)
|
||||
|
||||
Reference in New Issue
Block a user