2019-01-25 07:49:31 +08:00
|
|
|
CONFIG_LWM2M_DTLS_SUPPORT=y
|
|
|
|
CONFIG_LWM2M_PEER_PORT=5684
|
2018-04-24 05:19:38 +08:00
|
|
|
|
2019-07-09 00:50:51 +08:00
|
|
|
# Select Zephyr mbedtls
|
|
|
|
CONFIG_MBEDTLS=y
|
|
|
|
|
2019-01-25 07:49:31 +08:00
|
|
|
# Special MbedTLS changes
|
2019-07-09 00:50:51 +08:00
|
|
|
CONFIG_MBEDTLS_ENABLE_HEAP=y
|
2019-01-25 07:49:31 +08:00
|
|
|
CONFIG_MBEDTLS_HEAP_SIZE=8192
|
|
|
|
CONFIG_MBEDTLS_SSL_MAX_CONTENT_LEN=1500
|
2019-01-29 03:57:01 +08:00
|
|
|
CONFIG_MBEDTLS_CIPHER_CCM_ENABLED=y
|
|
|
|
|
|
|
|
# Disable RSA, we don't parse certs: saves flash/memory
|
|
|
|
CONFIG_MBEDTLS_KEY_EXCHANGE_RSA_ENABLED=n
|
|
|
|
# Enable PSK instead
|
|
|
|
CONFIG_MBEDTLS_KEY_EXCHANGE_PSK_ENABLED=y
|
|
|
|
|
|
|
|
CONFIG_NET_SOCKETS_SOCKOPT_TLS=y
|
|
|
|
CONFIG_NET_SOCKETS_TLS_MAX_CONTEXTS=4
|
|
|
|
CONFIG_NET_SOCKETS_ENABLE_DTLS=y
|
2019-01-25 07:49:31 +08:00
|
|
|
|
|
|
|
# MbedTLS needs a larger stack
|
|
|
|
CONFIG_MAIN_STACK_SIZE=2048
|
2019-02-18 19:56:25 +08:00
|
|
|
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
|