esp_local_ctrl: added sec1 and sec2 support in esp_local_ctrl example

This commit is contained in:
harshal.patil
2022-10-11 23:21:40 +05:30
parent 6e65b61c8a
commit f9db1ec366
5 changed files with 205 additions and 20 deletions
@@ -0,0 +1,44 @@
menu "Example Configuration"
choice EXAMPLE_PROTOCOMM_SECURITY_VERSION
bool "Protocomm security version"
default EXAMPLE_PROTOCOMM_SECURITY_VERSION_2
help
Local Control component offers 3 security versions.
The example offers a choice between security version 0, 1 and 2.
config EXAMPLE_PROTOCOMM_SECURITY_VERSION_0
bool "Security Version 0"
select ESP_PROTOCOMM_SUPPORT_SECURITY_VERSION_0
config EXAMPLE_PROTOCOMM_SECURITY_VERSION_1
bool "Security version 1"
select ESP_PROTOCOMM_SUPPORT_SECURITY_VERSION_1
config EXAMPLE_PROTOCOMM_SECURITY_VERSION_2
bool "Security version 2"
select ESP_PROTOCOMM_SUPPORT_SECURITY_VERSION_2
endchoice
choice EXAMPLE_PROTOCOMM_SEC2_MODE
bool "Security version 2 mode"
depends on EXAMPLE_PROTOCOMM_SECURITY_VERSION_2
default EXAMPLE_PROTOCOMM_SEC2_DEV_MODE
config EXAMPLE_PROTOCOMM_SEC2_DEV_MODE
bool "Security version 2 development mode"
depends on EXAMPLE_PROTOCOMM_SECURITY_VERSION_2
help
This enables the development mode for
security version 2.
Please note that this mode is NOT recommended for production purpose.
config EXAMPLE_PROTOCOMM_SEC2_PROD_MODE
bool "Security version 2 production mode"
depends on EXAMPLE_PROTOCOMM_SECURITY_VERSION_2
help
This enables the production mode for
security version 2.
endchoice
endmenu