Skip to content

Commit c4778af

Browse files
committed
Fix secure connect on modem
Temporarily disabled verification for secure connect on modem
1 parent 3231551 commit c4778af

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

samples/tmo_shell/src/tmo_shell.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,11 @@ int tcp_create_tls_core(const struct shell *shell, size_t argc, char **argv, int
265265
}
266266
socks[idx].flags |= BIT(sock_tls);
267267

268+
#if CONFIG_MODEM
269+
int tls_verify_val = TLS_PEER_VERIFY_NONE;
270+
zsock_setsockopt(sd, SOL_TLS, TLS_PEER_VERIFY, &tls_verify_val, sizeof(tls_verify_val));
271+
#endif
272+
268273
return ret;
269274
}
270275

0 commit comments

Comments
 (0)