stm32/mbedtls: Resize mbedtls output buffer from 16 down to 4 kiB.

To reduce the size of the SSL context on the heap.  See issue #5303.
This commit is contained in:
Jim Mussared 2019-11-07 22:15:33 +11:00 committed by Damien George
parent 5e431188db
commit 90f286465b

View File

@ -54,6 +54,11 @@
#define MBEDTLS_SSL_PROTO_TLS1_2 #define MBEDTLS_SSL_PROTO_TLS1_2
#define MBEDTLS_SSL_SERVER_NAME_INDICATION #define MBEDTLS_SSL_SERVER_NAME_INDICATION
// Use a smaller output buffer to reduce size of SSL context
#define MBEDTLS_SSL_MAX_CONTENT_LEN (16384)
#define MBEDTLS_SSL_IN_CONTENT_LEN (MBEDTLS_SSL_MAX_CONTENT_LEN)
#define MBEDTLS_SSL_OUT_CONTENT_LEN (4096)
// Enable mbedtls modules // Enable mbedtls modules
#define MBEDTLS_AES_C #define MBEDTLS_AES_C
#define MBEDTLS_ASN1_PARSE_C #define MBEDTLS_ASN1_PARSE_C