Skip to content

Commit

Permalink
kconfig: openthread: align Crypto configs
Browse files Browse the repository at this point in the history
- Enable `MBEDTLS_PEM_PARSE_C` for CoAPS and TCAT
- Disable `MBEDTLS_PROMPTLESS` to allow setting PSA configurations
with build command
- Align TCP connected configurations with Thread 1.4 requirements

Signed-off-by: Maciej Baczmanski <[email protected]>
  • Loading branch information
maciejbaczmanski authored and rlubos committed Oct 8, 2024
1 parent 4a34c90 commit 222cd88
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions subsys/net/openthread/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ config OPENTHREAD_NRF_SECURITY_PSA
select NRF_SECURITY
select MBEDTLS_ENABLE_HEAP if !OPENTHREAD_COPROCESSOR_RCP
select MBEDTLS_TLS_LIBRARY if (OPENTHREAD_JOINER || OPENTHREAD_COMMISSIONER || OPENTHREAD_COAPS)
select MBEDTLS_PEM_PARSE_C if (OPENTHREAD_COAPS || OPENTHREAD_BLE_TCAT)
select PSA_WANT_ALG_HKDF
select PSA_WANT_ALG_CCM
select PSA_WANT_ALG_CMAC
Expand Down
9 changes: 9 additions & 0 deletions subsys/net/openthread/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ choice OPENTHREAD_SECURITY
default OPENTHREAD_NRF_SECURITY_CHOICE if SOC_NRF54H20_CPUAPP
endchoice

config MBEDTLS_PROMPTLESS
default n

config MBEDTLS_SSL_PROTO_DTLS
bool
default n if !(OPENTHREAD_JOINER || OPENTHREAD_COMMISSIONER || OPENTHREAD_COAPS)
Expand Down Expand Up @@ -257,6 +260,12 @@ if OPENTHREAD_THREAD_VERSION_1_4
config OPENTHREAD_TCP_ENABLE
default y

config OPENTHREAD_CLI_TCP_ENABLE
default n

config OPENTHREAD_DNS_CLIENT_OVER_TCP
default y

endif # OPENTHREAD_THREAD_VERSION_1_4

if OPENTHREAD_COPROCESSOR_RCP
Expand Down

0 comments on commit 222cd88

Please sign in to comment.