Home
last modified time | relevance | path

Searched refs:SOL_TLS (Results 1 – 25 of 29) sorted by relevance

12

/Zephyr-latest/subsys/net/lib/mqtt/
Dmqtt_transport_socket_tls.c47 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()
75 ret = zsock_setsockopt(client->transport.tls.sock, SOL_TLS, in mqtt_client_tls_connect()
86 ret = zsock_setsockopt(client->transport.tls.sock, SOL_TLS, in mqtt_client_tls_connect()
95 ret = zsock_setsockopt(client->transport.tls.sock, SOL_TLS, in mqtt_client_tls_connect()
/Zephyr-latest/samples/net/sockets/http_get/src/
Dhttp_get.c106 CHECK(setsockopt(sock, SOL_TLS, TLS_SEC_TAG_LIST, in main()
109 CHECK(setsockopt(sock, SOL_TLS, TLS_HOSTNAME, in main()
/Zephyr-latest/tests/net/socket/tls_ext/src/
Dmain.c250 r = setsockopt(server_fd, SOL_TLS, TLS_PEER_VERIFY, in test_common()
262 r = setsockopt(server_fd, SOL_TLS, TLS_SEC_TAG_LIST, in test_common()
267 r = setsockopt(server_fd, SOL_TLS, TLS_HOSTNAME, "localhost", in test_common()
344 r = setsockopt(client_fd, SOL_TLS, TLS_SEC_TAG_LIST, in test_common()
349 r = setsockopt(client_fd, SOL_TLS, TLS_HOSTNAME, "localhost", in test_common()
/Zephyr-latest/tests/net/lib/lwm2m/interop/src/
Dlwm2m-client.c70 ret = zsock_setsockopt(ctx->sock_fd, SOL_TLS, TLS_DTLS_CID, &cid, in set_socketoptions()
83 zsock_setsockopt(ctx->sock_fd, SOL_TLS, TLS_DTLS_HANDSHAKE_TIMEOUT_MIN, &min, in set_socketoptions()
85 zsock_setsockopt(ctx->sock_fd, SOL_TLS, TLS_DTLS_HANDSHAKE_TIMEOUT_MAX, &max, in set_socketoptions()
/Zephyr-latest/tests/net/socket/tls_configurations/src/
Dmain.c111 ret = setsockopt(socket_fd, SOL_TLS, TLS_SEC_TAG_LIST, in create_socket()
120 ret = setsockopt(socket_fd, SOL_TLS, TLS_HOSTNAME, in create_socket()
/Zephyr-latest/tests/net/lib/http_server/tls/src/
Dmain.c166 ret = zsock_setsockopt(client_fd, SOL_TLS, TLS_SEC_TAG_LIST, in test_tls()
170 ret = zsock_setsockopt(client_fd, SOL_TLS, TLS_HOSTNAME, "zephyr.local", in test_tls()
/Zephyr-latest/subsys/net/lib/lwm2m/
Dlwm2m_engine.c1072 ret = zsock_setsockopt(ctx->sock_fd, SOL_TLS, TLS_SEC_TAG_LIST, tls_tag_list, in lwm2m_set_default_sockopt()
1083 ret = zsock_setsockopt(ctx->sock_fd, SOL_TLS, TLS_SESSION_CACHE, in lwm2m_set_default_sockopt()
1095 ret = zsock_setsockopt(ctx->sock_fd, SOL_TLS, TLS_DTLS_CID, &cid, in lwm2m_set_default_sockopt()
1112 ret = zsock_setsockopt(ctx->sock_fd, SOL_TLS, TLS_HOSTNAME, in lwm2m_set_default_sockopt()
1125 ret = zsock_setsockopt(ctx->sock_fd, SOL_TLS, TLS_PEER_VERIFY, &verify, in lwm2m_set_default_sockopt()
1135 ret = zsock_setsockopt(ctx->sock_fd, SOL_TLS, TLS_PEER_VERIFY, &verify, in lwm2m_set_default_sockopt()
1144 ret = zsock_setsockopt(ctx->sock_fd, SOL_TLS, TLS_CIPHERSUITE_LIST, in lwm2m_set_default_sockopt()
1151 ret = zsock_setsockopt(ctx->sock_fd, SOL_TLS, TLS_CIPHERSUITE_LIST, in lwm2m_set_default_sockopt()
/Zephyr-latest/samples/net/sockets/echo_server/src/
Dudp.c63 ret = setsockopt(data->udp.sock, SOL_TLS, TLS_SEC_TAG_LIST, in start_udp_proto()
72 ret = setsockopt(data->udp.sock, SOL_TLS, TLS_DTLS_ROLE, in start_udp_proto()
Dtcp.c95 ret = setsockopt(data->tcp.sock, SOL_TLS, TLS_SEC_TAG_LIST, in start_tcp_proto()
/Zephyr-latest/samples/net/sockets/echo_client/src/
Dtcp.c148 ret = setsockopt(data->tcp.sock, SOL_TLS, TLS_SEC_TAG_LIST, in start_tcp_proto()
156 ret = setsockopt(data->tcp.sock, SOL_TLS, TLS_HOSTNAME, in start_tcp_proto()
Dudp.c218 ret = setsockopt(data->udp.sock, SOL_TLS, TLS_SEC_TAG_LIST, in start_udp_proto()
226 ret = setsockopt(data->udp.sock, SOL_TLS, TLS_HOSTNAME, in start_udp_proto()
/Zephyr-latest/samples/net/sockets/big_http_download/src/
Dbig_http_download.c285 CHECK(setsockopt(sock, SOL_TLS, TLS_SEC_TAG_LIST, in download()
288 CHECK(setsockopt(sock, SOL_TLS, TLS_HOSTNAME, in download()
/Zephyr-latest/samples/net/sockets/http_client/src/
Dmain.c62 ret = setsockopt(*sock, SOL_TLS, TLS_SEC_TAG_LIST, in setup_socket()
70 ret = setsockopt(*sock, SOL_TLS, TLS_HOSTNAME, in setup_socket()
/Zephyr-latest/samples/net/sockets/websocket_client/src/
Dmain.c76 ret = setsockopt(*sock, SOL_TLS, TLS_SEC_TAG_LIST, in setup_socket()
85 ret = setsockopt(*sock, SOL_TLS, TLS_HOSTNAME, in setup_socket()
/Zephyr-latest/modules/thrift/src/thrift/transport/
DTSSLSocket.cpp123 setsockopt(socket_, SOL_TLS, TLS_SEC_TAG_LIST, sec_tag_list, sizeof(sec_tag_list)); in openSecConnection()
129 ret = setsockopt(socket_, SOL_TLS, TLS_PEER_VERIFY, &(ctx_->verifyMode), in openSecConnection()
136 ret = setsockopt(socket_, SOL_TLS, TLS_HOSTNAME, host_.c_str(), host_.size()); in openSecConnection()
DTSSLServerSocket.cpp142 int ret = setsockopt(serverSocket_, SOL_TLS, TLS_SEC_TAG_LIST, sec_tag_list, in listen()
/Zephyr-latest/subsys/net/lib/http/
Dhttp_server_core.c178 if (zsock_setsockopt(fd, SOL_TLS, TLS_SEC_TAG_LIST, in http_server_init()
186 if (zsock_setsockopt(fd, SOL_TLS, TLS_HOSTNAME, "localhost", in http_server_init()
194 if (zsock_setsockopt(fd, SOL_TLS, TLS_ALPN_LIST, alpn_list, in http_server_init()
/Zephyr-latest/doc/connectivity/networking/api/
Dsockets.rst130 ret = setsockopt(sock, SOL_TLS, TLS_SEC_TAG_LIST,
137 ret = setsockopt(sock, SOL_TLS, TLS_HOSTNAME, host, sizeof(host));
277 setsockopt(sock, SOL_TLS, TLS_NATIVE, &tls_native, sizeof(tls_native));
/Zephyr-latest/samples/net/sockets/dumb_http_server_mt/src/
Dmain.c171 ret = setsockopt(*sock, SOL_TLS, TLS_SEC_TAG_LIST, in setup()
/Zephyr-latest/tests/net/socket/offload_dispatcher/src/
Dmain.c770 ret = zsock_setsockopt(test_sock, SOL_TLS, TLS_NATIVE, in ZTEST()
817 ret = zsock_setsockopt(test_sock, SOL_TLS, TLS_NATIVE, in ZTEST()
/Zephyr-latest/include/zephyr/net/
Dsocket.h111 #define SOL_TLS 282 macro
/Zephyr-latest/subsys/net/lib/sockets/
Dsocket_dispatcher.c365 } else if ((level == SOL_TLS) && (optname == TLS_NATIVE)) { in sock_dispatch_setsockopt_vmeth()
/Zephyr-latest/subsys/mgmt/updatehub/
Dupdatehub.c218 if (zsock_setsockopt(ctx.sock, SOL_TLS, TLS_SEC_TAG_LIST, in start_coap_client()
224 if (zsock_setsockopt(ctx.sock, SOL_TLS, TLS_PEER_VERIFY, &verify, sizeof(int)) < 0) { in start_coap_client()
/Zephyr-latest/drivers/wifi/simplelink/
Dsimplelink_sockets.c721 if (IS_ENABLED(CONFIG_NET_SOCKETS_SOCKOPT_TLS) && level == SOL_TLS) { in simplelink_setsockopt()
815 if (IS_ENABLED(CONFIG_NET_SOCKETS_SOCKOPT_TLS) && level == SOL_TLS) { in simplelink_getsockopt()
/Zephyr-latest/tests/net/socket/tls/src/
Dmain.c76 zassert_equal(zsock_setsockopt(s_sock, SOL_TLS, TLS_SEC_TAG_LIST, in test_config_psk()
82 zassert_equal(zsock_setsockopt(c_sock, SOL_TLS, TLS_SEC_TAG_LIST, in test_config_psk()
383 zassert_equal(zsock_setsockopt(s_sock, SOL_TLS, TLS_DTLS_ROLE, in test_prepare_dtls_connection()

12