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:
parent
e3b3afa7a5
commit
7d8640aec3
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue