Home
last modified time | relevance | path

Searched refs:tls (Results 1 – 25 of 52) sorted by relevance

123

/Zephyr-Core-2.7.6/subsys/net/lib/mqtt/
Dmqtt_transport_socket_tls.c24 struct mqtt_sec_config *tls_config = &client->transport.tls.config; in mqtt_client_tls_connect()
27 client->transport.tls.sock = zsock_socket(broker->sa_family, in mqtt_client_tls_connect()
29 if (client->transport.tls.sock < 0) { in mqtt_client_tls_connect()
33 MQTT_TRC("Created socket %d", client->transport.tls.sock); in mqtt_client_tls_connect()
37 ret = setsockopt(client->transport.tls.sock, in mqtt_client_tls_connect()
47 ret = zsock_setsockopt(client->transport.tls.sock, SOL_TLS, TLS_PEER_VERIFY, in mqtt_client_tls_connect()
55 ret = zsock_setsockopt(client->transport.tls.sock, SOL_TLS, in mqtt_client_tls_connect()
64 ret = zsock_setsockopt(client->transport.tls.sock, SOL_TLS, in mqtt_client_tls_connect()
73 ret = zsock_setsockopt(client->transport.tls.sock, SOL_TLS, in mqtt_client_tls_connect()
87 ret = zsock_connect(client->transport.tls.sock, client->broker, in mqtt_client_tls_connect()
[all …]
/Zephyr-Core-2.7.6/arch/x86/core/ia32/
Dtls.c27 sd->base_low = thread->tls & 0xFFFFU; in z_x86_tls_update_gdt()
28 sd->base_mid = (thread->tls >> 16) & 0xFFU; in z_x86_tls_update_gdt()
29 sd->base_hi = (thread->tls >> 24) & 0xFFU; in z_x86_tls_update_gdt()
/Zephyr-Core-2.7.6/subsys/net/lib/sockets/
Dsockets_tls.c340 struct tls_context *tls = NULL; in tls_alloc() local
346 tls = &tls_contexts[i]; in tls_alloc()
347 (void)memset(tls, 0, sizeof(*tls)); in tls_alloc()
348 tls->is_used = true; in tls_alloc()
349 tls->options.verify_level = -1; in tls_alloc()
350 tls->sock = -1; in tls_alloc()
352 NET_DBG("Allocated TLS context, %p", tls); in tls_alloc()
359 if (tls) { in tls_alloc()
360 k_sem_init(&tls->tls_established, 0, 1); in tls_alloc()
362 mbedtls_ssl_init(&tls->ssl); in tls_alloc()
[all …]
/Zephyr-Core-2.7.6/samples/net/sockets/http_get/
DREADME.rst47 ``overlay-tls.conf`` overlay file enabled, for example, using these commands:
52 :conf: "prj.conf overlay-tls.conf"
56 An alternative way is to specify ``-DOVERLAY_CONFIG=overlay-tls.conf`` when
60 ``overlay-tls-offload.conf`` instead of ``overlay-tls.conf``.
/Zephyr-Core-2.7.6/arch/riscv/core/
Dtls.c32 new_thread->tls = POINTER_TO_UINT(stack_ptr); in arch_tls_stack_setup()
DCMakeLists.txt20 zephyr_library_sources_ifdef(CONFIG_THREAD_LOCAL_STORAGE tls.c)
/Zephyr-Core-2.7.6/arch/sparc/core/
Dtls.c16 new_thread->tls = POINTER_TO_UINT(stack_ptr); in arch_tls_stack_setup()
DCMakeLists.txt20 zephyr_library_sources_ifdef(CONFIG_THREAD_LOCAL_STORAGE tls.c)
/Zephyr-Core-2.7.6/arch/arc/core/
Dtls.c39 new_thread->tls = POINTER_TO_UINT(stack_ptr); in arch_tls_stack_setup()
DCMakeLists.txt31 zephyr_library_sources_ifdef(CONFIG_THREAD_LOCAL_STORAGE tls.c)
Dthread.c127 regs->r26 = thread->tls; in arch_setup_callee_saved_regs()
130 regs->r30 = thread->tls; in arch_setup_callee_saved_regs()
/Zephyr-Core-2.7.6/arch/arm64/core/
Dtls.c40 new_thread->tls = POINTER_TO_UINT(stack_ptr); in arch_tls_stack_setup()
DCMakeLists.txt23 zephyr_library_sources_ifdef(CONFIG_THREAD_LOCAL_STORAGE tls.c)
/Zephyr-Core-2.7.6/arch/arm/core/common/
Dtls.c50 new_thread->tls = POINTER_TO_UINT(stack_ptr);
/Zephyr-Core-2.7.6/tests/kernel/threads/tls/
DCMakeLists.txt5 project(tls) project
/Zephyr-Core-2.7.6/arch/x86/core/
Dtls.c38 new_thread->tls = POINTER_TO_UINT(self_ptr); in arch_tls_stack_setup()
DCMakeLists.txt24 zephyr_library_sources_ifdef(CONFIG_THREAD_LOCAL_STORAGE tls.c)
/Zephyr-Core-2.7.6/arch/xtensa/core/
Dtls.c44 new_thread->tls = POINTER_TO_UINT(stack_ptr); in arch_tls_stack_setup()
DCMakeLists.txt18 zephyr_library_sources_ifdef(CONFIG_THREAD_LOCAL_STORAGE tls.c)
/Zephyr-Core-2.7.6/samples/net/sockets/http_client/
DREADME.rst39 ``overlay-tls.conf`` overlay file enabled using these commands:
44 :conf: "prj.conf overlay-tls.conf"
48 An alternative way is to specify ``-DOVERLAY_CONFIG=overlay-tls.conf`` when
/Zephyr-Core-2.7.6/samples/net/sockets/websocket_client/
DREADME.rst40 ``overlay-tls.conf`` overlay file enabled using these commands:
45 :conf: "prj.conf overlay-tls.conf"
49 An alternative way is to specify ``-DOVERLAY_CONFIG=overlay-tls.conf`` when
/Zephyr-Core-2.7.6/samples/net/sockets/echo_server/
DREADME.rst54 - :file:`overlay-tls.conf`
99 ``overlay-tls.conf`` overlay file enabled, for example, using these commands:
104 :conf: "prj.conf overlay-tls.conf"
108 An alternative way is to specify ``-DOVERLAY_CONFIG=overlay-tls.conf`` when
/Zephyr-Core-2.7.6/arch/arm/core/aarch32/
DCMakeLists.txt21 zephyr_library_sources_ifdef(CONFIG_THREAD_LOCAL_STORAGE ../common/tls.c)
/Zephyr-Core-2.7.6/samples/net/sockets/echo_client/
DREADME.rst50 - :file:`overlay-tls.conf`
94 ``overlay-tls.conf`` overlay file enabled, for example, using these commands:
99 :conf: "prj.conf overlay-tls.conf"
103 An alternative way is to specify ``-DOVERLAY_CONFIG=overlay-tls.conf`` when
/Zephyr-Core-2.7.6/samples/net/sockets/big_http_download/
DREADME.rst68 ``overlay-tls.conf`` overlay file enabled, for example, using these commands:
73 :conf: "prj.conf overlay-tls.conf"
77 An alternative way is to specify ``-DOVERLAY_CONFIG=overlay-tls.conf`` when

123