Skip to content

Commit 1364a9c

Browse files
jukkarnashif
authored andcommitted
net: tls: Allow access to TLS socket in userspace
If userspace is enabled, then the TLS context needs to be made a NET_SOCKET kernel object. Without this the userspace cannot access TLS sockets. Signed-off-by: Jukka Rissanen <[email protected]>
1 parent a890790 commit 1364a9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/net/lib/sockets/sockets_tls.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ struct dtls_timing_context {
7373
};
7474

7575
/** TLS context information. */
76-
struct tls_context {
76+
__net_socket struct tls_context {
7777
/** Information whether TLS context is used. */
7878
bool is_used;
7979

0 commit comments

Comments
 (0)