/Zephyr-latest/subsys/net/lib/mqtt/ |
D | mqtt_transport_socket_tls.c | 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() 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/ |
D | http_get.c | 106 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/ |
D | main.c | 250 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/ |
D | lwm2m-client.c | 70 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/ |
D | main.c | 111 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/ |
D | main.c | 166 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/ |
D | lwm2m_engine.c | 1072 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/ |
D | udp.c | 63 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()
|
D | tcp.c | 95 ret = setsockopt(data->tcp.sock, SOL_TLS, TLS_SEC_TAG_LIST, in start_tcp_proto()
|
/Zephyr-latest/samples/net/sockets/echo_client/src/ |
D | tcp.c | 148 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()
|
D | udp.c | 218 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/ |
D | big_http_download.c | 285 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/ |
D | main.c | 62 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/ |
D | main.c | 76 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/ |
D | TSSLSocket.cpp | 123 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()
|
D | TSSLServerSocket.cpp | 142 int ret = setsockopt(serverSocket_, SOL_TLS, TLS_SEC_TAG_LIST, sec_tag_list, in listen()
|
/Zephyr-latest/subsys/net/lib/http/ |
D | http_server_core.c | 178 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/ |
D | sockets.rst | 130 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/ |
D | main.c | 171 ret = setsockopt(*sock, SOL_TLS, TLS_SEC_TAG_LIST, in setup()
|
/Zephyr-latest/tests/net/socket/offload_dispatcher/src/ |
D | main.c | 770 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/ |
D | socket.h | 111 #define SOL_TLS 282 macro
|
/Zephyr-latest/subsys/net/lib/sockets/ |
D | socket_dispatcher.c | 365 } else if ((level == SOL_TLS) && (optname == TLS_NATIVE)) { in sock_dispatch_setsockopt_vmeth()
|
/Zephyr-latest/subsys/mgmt/updatehub/ |
D | updatehub.c | 218 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/ |
D | simplelink_sockets.c | 721 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/ |
D | main.c | 76 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()
|