mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-20 06:35:22 +00:00
This value allows to set max payload length of a TLS protocol message, and passed thru to mbedTLS as MBEDTLS_SSL_MAX_CONTENT_LEN setting. The only safe value is 16384, which translates to 32KB of RAM required just for mbedTLS input/output buffers. Any other value can be configured *only* per a particular application (e.g. knowing that it won't pass more than spefific amount of data at once and/or won't connect to a server with a long cert chain). Previosuly, we had quite an adhoc and inflexible config with random values for that setting, based on protocol. Note that while the safe value is 16384, "backward compatible" default of 1500 is used (good for DTLS on the other hand). Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
55 lines
1.1 KiB
Plaintext
55 lines
1.1 KiB
Plaintext
CONFIG_NETWORKING=y
|
|
CONFIG_NET_TCP=y
|
|
CONFIG_ENTROPY_GENERATOR=y
|
|
CONFIG_NET_LOG=y
|
|
CONFIG_INIT_STACKS=y
|
|
|
|
CONFIG_NET_PKT_RX_COUNT=16
|
|
CONFIG_NET_PKT_TX_COUNT=16
|
|
CONFIG_NET_BUF_RX_COUNT=16
|
|
CONFIG_NET_BUF_TX_COUNT=16
|
|
|
|
CONFIG_NET_IF_UNICAST_IPV6_ADDR_COUNT=3
|
|
CONFIG_NET_IF_MCAST_IPV6_ADDR_COUNT=4
|
|
|
|
CONFIG_STDOUT_CONSOLE=y
|
|
|
|
CONFIG_SYS_LOG_SHOW_COLOR=y
|
|
CONFIG_SYS_LOG_NET_LEVEL=4
|
|
CONFIG_NET_DEBUG_HTTP=y
|
|
|
|
CONFIG_HTTP=y
|
|
CONFIG_HTTP_SERVER=y
|
|
|
|
CONFIG_NET_IPV6=y
|
|
CONFIG_NET_IPV4=n
|
|
|
|
CONFIG_HTTPS=y
|
|
CONFIG_MBEDTLS=y
|
|
CONFIG_MBEDTLS_BUILTIN=y
|
|
CONFIG_MBEDTLS_CFG_FILE="config-mini-tls1_2.h"
|
|
CONFIG_MBEDTLS_SSL_MAX_CONTENT_LEN=2500
|
|
CONFIG_MBEDTLS_ENABLE_HEAP=y
|
|
CONFIG_MBEDTLS_HEAP_SIZE=12000
|
|
|
|
CONFIG_NET_APP_SETTINGS=y
|
|
CONFIG_NET_APP_MY_IPV6_ADDR="2001:db8::1"
|
|
CONFIG_NET_APP_BT_NODE=y
|
|
|
|
CONFIG_NET_SHELL=y
|
|
|
|
CONFIG_NET_MGMT=y
|
|
CONFIG_NET_MGMT_EVENT=y
|
|
|
|
CONFIG_BT=y
|
|
CONFIG_BT_DEBUG_LOG=y
|
|
CONFIG_BT_SMP=y
|
|
CONFIG_BT_PERIPHERAL=y
|
|
CONFIG_BT_L2CAP_DYNAMIC_CHANNEL=y
|
|
CONFIG_BT_DEVICE_NAME="Test Http_Server"
|
|
CONFIG_NET_UDP=y
|
|
CONFIG_TEST_RANDOM_GENERATOR=y
|
|
CONFIG_NET_L2_BT=y
|
|
CONFIG_NET_DEBUG_L2_BT=y
|
|
CONFIG_NET_STATISTICS=y
|