Skip to content

Commit 72750b6

Browse files
rlubosmbolivar-nordic
authored andcommitted
[nrf fromlist] sockets: tls: Fix Kconfig mbedTLS dependencies
Sort out mbedTLS dependencies in sockets Kconfig. mbedTLS will now be enabled when TLS sockets and native network stack are enabled. Upstream PR: zephyrproject-rtos/zephyr#22359 Signed-off-by: Robert Lubos <[email protected]> (cherry picked from commit b30bf22)
1 parent 9cdd7de commit 72750b6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

subsys/net/lib/sockets/Kconfig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,16 @@ config NET_SOCKETS_DNS_TIMEOUT
4848

4949
config NET_SOCKETS_SOCKOPT_TLS
5050
bool "Enable TCP TLS socket option support [EXPERIMENTAL]"
51-
select TLS_CREDENTIALS
51+
select TLS_CREDENTIALS if NET_NATIVE
52+
select MBEDTLS if NET_NATIVE
5253
help
5354
Enable TLS socket option support which automatically establishes
5455
a TLS connection to the remote host.
5556

5657
config NET_SOCKETS_ENABLE_DTLS
5758
bool "Enable DTLS socket support [EXPERIMENTAL]"
5859
depends on NET_SOCKETS_SOCKOPT_TLS
59-
select MBEDTLS_DTLS
60+
select MBEDTLS_DTLS if NET_NATIVE
6061
help
6162
Enable DTLS socket support. By default only TLS over TCP is supported.
6263

0 commit comments

Comments
 (0)