Skip to content

Commit 916e04e

Browse files
ananglcarlescufi
authored andcommitted
net: lib: sockets_tls: Include zephyr_mbedtls_priv.h conditionally
This is a follow-up to commit a418ad4. Since the path to zephyr_mbedtls_priv.h is added to include directories only when CONFIG_MBEDTLS_BUILTIN is enabled, the inclusion of the file needs to be done under the same condition. Otherwise, an error occurs when socket_tls.c is compiled without CONFIG_MBEDTLS_BUILTIN. Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
1 parent 2334402 commit 916e04e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

subsys/net/lib/sockets/sockets_tls.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ LOG_MODULE_REGISTER(net_sock_tls, CONFIG_NET_SOCKETS_LOG_LEVEL);
5252
#include "sockets_internal.h"
5353
#include "tls_internal.h"
5454

55-
#include "zephyr_mbedtls_priv.h"
55+
#if defined(CONFIG_MBEDTLS_BUILTIN)
56+
#include <zephyr_mbedtls_priv.h>
57+
#endif
5658

5759
#if defined(CONFIG_NET_SOCKETS_TLS_MAX_APP_PROTOCOLS)
5860
#define ALPN_MAX_PROTOCOLS (CONFIG_NET_SOCKETS_TLS_MAX_APP_PROTOCOLS + 1)

0 commit comments

Comments
 (0)