Skip to content

Commit

Permalink
net: tls: Allow access to TLS socket in userspace
Browse files Browse the repository at this point in the history
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 <jukka.rissanen@linux.intel.com>
  • Loading branch information
jukkar authored and nashif committed Feb 19, 2021
1 parent c6921d2 commit 18ddabc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subsys/net/lib/sockets/sockets_tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ struct dtls_timing_context {
};

/** TLS context information. */
struct tls_context {
__net_socket struct tls_context {
/** Information whether TLS context is used. */
bool is_used;

Expand Down

0 comments on commit 18ddabc

Please sign in to comment.