|
2 | 2 |
|
3 | 3 | # Copyright (c) 2018 Nordic Semiconductor ASA
|
4 | 4 | # SPDX-License-Identifier: Apache-2.0
|
| 5 | +config OPENTHREAD_SECURITY_INTERNAL |
| 6 | + bool |
| 7 | + help |
| 8 | + OpenThread setting to signal that OpenThread security settings, such |
| 9 | + as the OPENTHREAD_MBEDTLS setting will be controlled through other |
| 10 | + Kconfig dependencies and should not be user configurable. |
5 | 11 |
|
6 | 12 | menuconfig NET_L2_OPENTHREAD
|
7 | 13 | bool "OpenThread L2"
|
@@ -153,9 +159,32 @@ config OPENTHREAD_SHELL
|
153 | 159 | depends on SHELL
|
154 | 160 | default y
|
155 | 161 |
|
| 162 | +config MBEDTLS_PROMPTLESS |
| 163 | + bool |
| 164 | + default y if !CUSTOM_OPENTHREAD_SECURITY |
| 165 | + |
| 166 | +choice OPENTHREAD_SECURITY |
| 167 | + prompt "OpenThread security" |
| 168 | + default OPENTHREAD_MBEDTLS_CHOICE |
| 169 | + depends on !OPENTHREAD_SECURITY_INTERNAL |
| 170 | + |
| 171 | +config CUSTOM_OPENTHREAD_SECURITY |
| 172 | + bool "Custom" |
| 173 | + help |
| 174 | + Security settings will be controlled directly by the user. |
| 175 | + Enabling this setting will give access to full control of mbed TLS |
| 176 | + configuration. |
| 177 | + |
| 178 | +config OPENTHREAD_MBEDTLS_CHOICE |
| 179 | + bool "mbed TLS built-in" |
| 180 | + select OPENTHREAD_MBEDTLS |
| 181 | + help |
| 182 | + Use the OpenThread mbed TLS configuration pre-defined security scheme. |
| 183 | + |
| 184 | +endchoice |
| 185 | + |
156 | 186 | config OPENTHREAD_MBEDTLS
|
157 |
| - bool "Enable built-in mbedtls for use with OpenThread" |
158 |
| - default y |
| 187 | + bool |
159 | 188 | select MBEDTLS
|
160 | 189 | select MBEDTLS_ENABLE_HEAP
|
161 | 190 | select MBEDTLS_CIPHER_AES_ENABLED
|
|
0 commit comments