From b8d2d30a6de9457dbae119689aeec96186d228e8 Mon Sep 17 00:00:00 2001 From: Akshai M Date: Tue, 1 Sep 2020 19:38:37 +0530 Subject: [PATCH] net/sock/dtls : Expose to Kconfig --- sys/net/sock/Kconfig | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/sys/net/sock/Kconfig b/sys/net/sock/Kconfig index e92827496e..3ddf8f6fc6 100644 --- a/sys/net/sock/Kconfig +++ b/sys/net/sock/Kconfig @@ -29,3 +29,19 @@ config SOCK_URLPATH_MAXLEN This value is used in sock_urlsplit(). endif # KCONFIG_USEMODULE_SOCK_UTIL + +menuconfig KCONFIG_USEMODULE_SOCK_DTLS + bool "Configure SOCK DTLS" + depends on USEMODULE_SOCK_DTLS + +if KCONFIG_USEMODULE_SOCK_DTLS + +config DTLS_HANDSHAKE_BUFSIZE_EXP + int "Exponent for the DTLS buffer size (resulting in the buffer size 2^n)" + default 8 + help + As the buffer size ALWAYS needs to be power of two, this option + represents the exponent of 2^n, which will be used as the size of the + buffer. The buffer is used to hold credentials during DTLS handshakes. + +endif # KCONFIG_USEMODULE_SOCK_DTLS