10000 stm32: Resize mbedtls output buffer from 16 to 4 kiB. · jimmo/micropython@4e3d007 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4e3d007

Browse files
committed
stm32: Resize mbedtls output buffer from 16 to 4 kiB.
Ref micropython#5303
1 parent d8c8188 commit 4e3d007

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ports/stm32/mbedtls/mbedtls_config.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@
5454
#define MBEDTLS_SSL_PROTO_TLS1_2
5555
#define MBEDTLS_SSL_SERVER_NAME_INDICATION
5656

57+
// Use a smaller output buffer (ref issue #5303)
58+
#define MBEDTLS_SSL_MAX_CONTENT_LEN (16384)
59+
#define MBEDTLS_SSL_IN_CONTENT_LEN (MBEDTLS_SSL_MAX_CONTENT_LEN)
60+
#define MBEDTLS_SSL_OUT_CONTENT_LEN (4096)
61+
5762
// Enable mbedtls modules
5863
#define MBEDTLS_AES_C
5964
#define MBEDTLS_ASN1_PARSE_C

0 commit comments

Comments
 (0)
0