Home
last modified time | relevance | path

Searched refs:lws_strncpy (Results 1 – 25 of 61) sorted by relevance

123

/third_party/libwebsockets/test-apps/
Dtest-server.c485 lws_strncpy(interface_name, optarg, sizeof interface_name); in main()
489 lws_strncpy(interface_name, optarg, sizeof interface_name); in main()
507 lws_strncpy(cert_path, optarg, sizeof(cert_path)); in main()
510 lws_strncpy(key_path, optarg, sizeof(key_path)); in main()
513 lws_strncpy(ca_path, optarg, sizeof(ca_path)); in main()
523 lws_strncpy(crl_path, optarg, sizeof(crl_path)); in main()
Dtest-client.c668 lws_strncpy(cert_path, optarg, sizeof(cert_path)); in main()
671 lws_strncpy(key_path, optarg, sizeof(key_path)); in main()
674 lws_strncpy(ca_path, optarg, sizeof(ca_path)); in main()
679 lws_strncpy(crl_path, optarg, sizeof(crl_path)); in main()
701 lws_strncpy(path + 1, p, sizeof(path) - 1); in main()
/third_party/libwebsockets/lib/core-net/client/
Dclient.c49 lws_strncpy(authstring, proxy, lws_ptr_diff_size_t(p, proxy) + 1); in lws_set_proxy()
80 lws_strncpy(vhost->http.http_proxy_address, proxy + brackets, in lws_set_proxy()
/third_party/libwebsockets/plugins/
Dprotocol_lws_openmetrics_export.c146 lws_strncpy(url, vhd->ws_server_uri, sizeof(url)); in omc_connect_client()
287 lws_strncpy(tmp, lws_metric_bucket_name(buck), in lws_metrics_om_format()
342 lws_strncpy(nm, pub->name, sizeof(nm)); in append_om_metric()
617 lws_strncpy(vhd->sanity, "isagg", sizeof(vhd->sanity)); in callback_lws_openmetrics_prox_agg()
793 lws_strncpy(vhd->sanity, "isws", sizeof(vhd->sanity)); in callback_lws_openmetrics_prox_server()
979 lws_strncpy(vhd->ws_server_uri, cp, sizeof(vhd->ws_server_uri)); in callback_lws_openmetrics_prox_client()
988 lws_strncpy(vhd->metrics_proxy_path, cp, sizeof(vhd->metrics_proxy_path)); in callback_lws_openmetrics_prox_client()
997 lws_strncpy(vhd->ba_secret, cp, sizeof(vhd->ba_secret)); in callback_lws_openmetrics_prox_client()
1069 lws_strncpy((char *)start, vhd->metrics_proxy_path, in callback_lws_openmetrics_prox_client()
Dprotocol_client_loopback_test.c157 lws_strncpy(buf, in, sizeof(buf)); in callback_client_loopback_test()
/third_party/libwebsockets/minimal-examples/embedded/esp32/esp-c3dev/main/
Ddevices.c134 lws_strncpy(creds.ssid, "xxx", sizeof(creds.ssid)); in init_plat_devices()
135 lws_strncpy(creds.passphrase, "xxx", sizeof(creds.passphrase)); in init_plat_devices()
/third_party/libwebsockets/minimal-examples/embedded/esp32/esp-heltec-wb32/main/
Ddevices.c150 lws_strncpy(creds.ssid, "xxx", sizeof(creds.ssid)); in init_plat_devices()
151 lws_strncpy(creds.passphrase, "yyy", sizeof(creds.passphrase)); in init_plat_devices()
/third_party/libwebsockets/lib/core-net/
Dsocks5-client.c63 lws_strncpy(vhost->socks_user, socks, in lws_set_socks()
65 lws_strncpy(vhost->socks_password, p_colon + 1, in lws_set_socks()
76 lws_strncpy(vhost->socks_proxy_address, socks, in lws_set_socks()
/third_party/libwebsockets/minimal-examples/embedded/esp32/esp-wrover-kit/main/
Ddevices.c196 lws_strncpy(creds.ssid, "xxx", sizeof(creds.ssid)); in init_plat_devices()
197 lws_strncpy(creds.passphrase, "yyy", sizeof(creds.passphrase)); in init_plat_devices()
/third_party/libwebsockets/plugins/deaddrop/
Dprotocol_lws_deaddrop.c146 lws_strncpy(subdir[sp], vhd->upload_dir, sizeof(subdir[sp])); in scan_upload_dir()
199 lws_strncpy(subdir[sp], de->d_name, sizeof(subdir[sp])); in scan_upload_dir()
224 lws_strncpy(dire->user, subdir[1], sizeof(dire->user)); in scan_upload_dir()
336 lws_strncpy(filename2, pss->filename, sizeof(filename2)); in file_upload_cb()
484 lws_strncpy(fname, ((const char *)in) + 8, sizeof(fname)); in callback_deaddrop()
/third_party/libwebsockets/lib/plat/unix/
Dunix-sockets.c408 lws_strncpy(i.ifr_name, ifname, sizeof(i.ifr_name)); in lws_plat_ifname_to_hwaddr()
470 lws_strncpy(ifr.ifr_name, ifname, IFNAMSIZ); in lws_plat_if_up()
503 lws_strncpy(i.ifr_ifrn.ifrn_name, ifname, in lws_plat_BINDTODEVICE()
528 lws_strncpy(ifr.ifr_name, is->ifname, IFNAMSIZ); in lws_plat_ifconfig()
/third_party/libwebsockets/plugins/acme-client/
Dprotocol_lws_acme_client.c418 lws_strncpy(s->status, ctx->buf, sizeof(s->status)); in cb_order()
499 lws_strncpy(s->status, ctx->buf, sizeof(s->status)); in cb_authz()
504 lws_strncpy(s->challenge_uri, ctx->buf, in cb_authz()
512 lws_strncpy(s->chall_token, ctx->buf, in cb_authz()
559 lws_strncpy(s->status, ctx->buf, sizeof(s->status)); in cb_chac()
565 lws_strncpy(s->chall_token, ctx->buf, sizeof(s->chall_token)); in cb_chac()
599 lws_strncpy(_url, url, sizeof(_url)); in lws_acme_client_connect()
608 lws_strncpy(path + 1, p, sizeof(path) - 1); in lws_acme_client_connect()
/third_party/libwebsockets/lib/abstract/protocols/smtp/
Dsmtp-sequencer.c308 lws_strncpy(e->from, sender, sizeof(e->from)); in lws_smtpc_add_email()
309 lws_strncpy(e->to, recipient, sizeof(e->to)); in lws_smtpc_add_email()
/third_party/libwebsockets/lib/drivers/netdev/
Dwifi.c157 lws_strncpy(wnd->current_attempt_ssid, (const char *)&pw[1], in lws_netdev_wifi_scan_select()
232 lws_strncpy(wnd->current_attempt_ssid, ssid_copy, in lws_netdev_wifi_redo_last()
/third_party/libwebsockets/minimal-examples/api-tests/api-test-lws_struct-json/
Dmain.c652 lws_strncpy(meta.b->hostname, "myhostname", sizeof(meta.b->hostname)); in main()
717 lws_strncpy(creds.ssid, "xxx", sizeof(creds.ssid)); in main()
718 lws_strncpy(creds.passphrase, "yyy", sizeof(creds.passphrase)); in main()
/third_party/libwebsockets/minimal-examples/api-tests/api-test-lws_sequencer/
Dmain.c185 lws_strncpy(uri, url_paths[s->state], sizeof(uri)); in sequencer_start_client()
201 lws_strncpy(&path[n], path1, sizeof(path) - 1); in sequencer_start_client()
/third_party/libwebsockets/minimal-examples/raw/minimal-raw-proxy/
Dminimal-raw-proxy.c67 lws_strncpy(outward, p, sizeof(outward)); in main()
/third_party/libwebsockets/minimal-examples/raw/minimal-raw-proxy-fallback/
Dminimal-raw-proxy-fallback.c93 lws_strncpy(outward, p, sizeof(outward)); in main()
/third_party/libwebsockets/lib/plat/freertos/esp32/drivers/netdev/
Dwifi-esp32.c93 lws_strncpy((char *)wnde32->sta_config.sta.ssid, ssid, in lws_netdev_wifi_connect_plat()
95 lws_strncpy((char *)wnde32->sta_config.sta.password, passphrase, in lws_netdev_wifi_connect_plat()
/third_party/libwebsockets/minimal-examples/secure-streams/minimal-secure-streams-policy2c/
Dminimal-secure-streams.c199 lws_strncpy(prev, curr, sizeof(prev)); in main()
440 lws_strncpy(prev, curr, sizeof(prev)); in main()
652 lws_strncpy(prev, curr, sizeof(prev)); in main()
/third_party/libwebsockets/minimal-examples/raw/minimal-raw-file/
Dminimal-raw-file.c146 lws_strncpy(filepath, argv[1], sizeof(filepath)); in main()
/third_party/libwebsockets/include/libwebsockets/
Dlws-misc.h221 lws_strncpy(char *dest, const char *src, size_t size);
228 lws_strncpy(dest, src, (size_t)(size1 + 1) < (size_t)(destsize) ? \
/third_party/libwebsockets/lib/system/dhcpclient/
Ddhcpclient.c126 lws_strncpy(r->is.ifname, iface, sizeof(r->is.ifname)); in lws_dhcpc_request()
/third_party/libwebsockets/minimal-examples/api-tests/api-test-lws_struct_sqlite/
Dmain.c111 lws_strncpy(ts.str1, "hello", sizeof(ts.str1)); in main()
/third_party/libwebsockets/minimal-examples/secure-streams/minimal-secure-streams-server/
Dss-server.c98 lws_strncpy((char *)buf, send, *len); in myss_srv_tx()

123