-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Kconfig: Expose pkg/tinydtls configurations
- Loading branch information
Aiman Ismail
committed
Mar 6, 2020
1 parent
d5b2aa8
commit a6432cf
Showing
3 changed files
with
53 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,6 @@ | |
# | ||
menu "Packages" | ||
|
||
rsource "tinydtls/Kconfig" | ||
|
||
endmenu # Packages | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Copyright (c) 2019 HAW Hamburg | ||
# | ||
# This file is subject to the terms and conditions of the GNU Lesser | ||
# General Public License v2.1. See the file LICENSE in the top level | ||
# directory for more details. | ||
# | ||
menuconfig KCONFIG_PKG_TINYDTLS | ||
bool "Configure tinydtls" | ||
depends on PKG_TINYDTLS | ||
help | ||
Configure tinydtls package via Kconfig. | ||
|
||
if KCONFIG_PKG_TINYDTLS | ||
|
||
# TODO change to multiple choice after DTLS application support enabling more than one types of cypher suites | ||
choice | ||
bool "Cipher suite to enable" | ||
default DTLS_PSK | ||
|
||
config DTLS_PSK | ||
bool "TLS_PSK_WITH_AES_128_CCM_8" | ||
|
||
config DTLS_ECC | ||
bool "TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8" | ||
|
||
endchoice | ||
|
||
config DTLS_DEBUG | ||
bool "Enable debug log" | ||
help | ||
Enable debug log output for tinydtls | ||
|
||
config DTLS_CONTEXT_MAX | ||
int "Max DTLS context" | ||
default 2 | ||
help | ||
The maximum number of DTLS context at the same time. | ||
|
||
config DTLS_PEER_MAX | ||
int "Max number of peers" | ||
default 1 | ||
help | ||
The maximum number of DTLS peers. | ||
|
||
config DTLS_HANDSHAKE_MAX | ||
int "Max concurrent handshake" | ||
default 1 | ||
help | ||
The maximum number of concurrent DTLS handshakes. | ||
|
||
endif # KCONFIG_PKG_TINYDTLS |