Skip to content

Commit 4e04b51

Browse files
aescolarhenrikbrixandersen
authored andcommitted
net: sockets: tls: Fix net API use
In d45cd67 the mayority of this code was changed to use the Zephyr native net_/zsock_ prefixed types/functions but some were forgotten. Let's fix it. Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
1 parent 9065525 commit 4e04b51

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎subsys/net/lib/sockets/sockets_tls.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ __net_socket struct tls_context {
262262
#endif /* CONFIG_NET_SOCKETS_ENABLE_DTLS */
263263

264264
#if defined(CONFIG_NET_SOCKETS_TLS_CERT_VERIFY_CALLBACK)
265-
struct tls_cert_verify_cb cert_verify;
265+
struct zsock_tls_cert_verify_cb cert_verify;
266266
#endif /* CONFIG_NET_SOCKETS_TLS_CERT_VERIFY_CALLBACK */
267267
} options;
268268

@@ -2704,17 +2704,17 @@ static int tls_opt_cert_verify_callback_set(struct tls_context *context,
27042704
const void *optval,
27052705
net_socklen_t optlen)
27062706
{
2707-
struct tls_cert_verify_cb *cert_verify;
2707+
struct zsock_tls_cert_verify_cb *cert_verify;
27082708

27092709
if (!optval) {
27102710
return -EINVAL;
27112711
}
27122712

2713-
if (optlen != sizeof(struct tls_cert_verify_cb)) {
2713+
if (optlen != sizeof(struct zsock_tls_cert_verify_cb)) {
27142714
return -EINVAL;
27152715
}
27162716

2717-
cert_verify = (struct tls_cert_verify_cb *)optval;
2717+
cert_verify = (struct zsock_tls_cert_verify_cb *)optval;
27182718
if (cert_verify->cb == NULL) {
27192719
return -EINVAL;
27202720
}

0 commit comments

Comments
 (0)