/third_party/libwebsockets/test-apps/ |
H A D | test-lecp.c | 73 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), in cb() 80 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), in cb() 92 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), in cb() 102 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), in cb() 110 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), "(array indexes: "); in cb() 112 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), "%d ", ctx->i[n]); in cb() 113 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), ") "); in cb()
|
H A D | test-lejp.c | 55 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), " value '%s' ", ctx->buf); in cb() 59 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), "(array indexes: "); in cb() 61 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), "%d ", ctx->i[n]); in cb() 62 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), ") "); in cb()
|
/third_party/libwebsockets/lib/roles/cgi/ |
H A D | cgi-server.c | 156 sum += lws_snprintf(sum, lws_ptr_diff_size_t(sumend, sum), "%s ", exec_array[0]); in lws_cgi() 172 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), "HTTPS=ON"); in lws_cgi() 216 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), in lws_cgi() 219 sum += lws_snprintf(sum, lws_ptr_diff_size_t(sumend, sum), "%s ", in lws_cgi() 223 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), in lws_cgi() 226 sum += lws_snprintf(sum, lws_ptr_diff_size_t(sumend, sum), "%s ", in lws_cgi() 235 sum += lws_snprintf(sum, lws_ptr_diff_size_t(sumend, sum), "%s ", in lws_cgi() 239 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), "QUERY_STRING="); in lws_cgi() 274 sum += lws_snprintf(sum, lws_ptr_diff_size_t(sumend, sum), "%s", env_array[n - 1]); in lws_cgi() 278 p += lws_snprintf( in lws_cgi() [all...] |
/third_party/libwebsockets/lib/misc/ |
H A D | fsmount.c | 48 lws_snprintf(path, sizeof(path), "%s/%s", dirpath, lde->name); in rm_rf_cb() 87 lws_snprintf(opts, sizeof(opts), "%s/overlays/%s/session", in lws_fsmount_mount() 96 n = lws_snprintf(opts, sizeof(opts), "lowerdir="); in lws_fsmount_mount() 102 n += lws_snprintf(&opts[n], (size_t)(sizeof(opts) - (unsigned int)n), in lws_fsmount_mount() 107 n += lws_snprintf(&opts[n], (size_t)(sizeof(opts) - (unsigned int)n), in lws_fsmount_mount() 111 n += lws_snprintf(&opts[n], (size_t)(sizeof(opts) - (unsigned int)n), in lws_fsmount_mount()
|
H A D | lws-struct-sqlite.c | 208 m += lws_snprintf(&results[m], sizeof(results) - (unsigned int)n - 1, in lws_struct_sq3_deserialize() 213 lws_snprintf(where, sizeof(where), " where _lws_idx >= %llu %s", in lws_struct_sq3_deserialize() 216 lws_snprintf(s, sizeof(s) - 1, "select %s " in lws_struct_sq3_deserialize() 329 m = lws_snprintf(sql, sql_est, "insert into %s(_lws_idx, ", in _lws_struct_sq3_ser_one() 348 m += lws_snprintf(sql + m, sql_est - (unsigned int)m, in _lws_struct_sq3_ser_one() 353 m += lws_snprintf(sql + m, sql_est - (unsigned int)m, ") values(%u, ", idx); in _lws_struct_sq3_ser_one() 377 m += lws_snprintf(sql + m, sql_est - (unsigned int)m, "%lld", in _lws_struct_sq3_ser_one() 380 m += lws_snprintf(sql + m, sql_est - (unsigned int)m, "%llu", in _lws_struct_sq3_ser_one() 419 lws_snprintf(sql + m, sql_est - (unsigned int)m, ");"); in _lws_struct_sq3_ser_one() 457 p += lws_snprintf( in lws_struct_sq3_create_table() [all...] |
H A D | diskcache.c | 132 lws_snprintf(dir, sizeof(dir), "%s/%c", cache_base_dir, hex[n]); in lws_diskcache_prepare() 138 lws_snprintf(dir, sizeof(dir), "%s/%c/%c", in lws_diskcache_prepare() 190 n = lws_snprintf(cache, (size_t)cache_len, "%s/%c/%c/%s", lds->cache_dir_base, in lws_diskcache_query() 224 lws_snprintf(cache + n, (size_t)cache_len - (unsigned int)n, "~%d-%p", (int)getpid(), in lws_diskcache_query() 303 lws_snprintf(dirpath, sizeof(dirpath), "%s/%c/%c", in lws_diskcache_trim() 324 lws_snprintf(filepath, sizeof(filepath), "%s/%s", dirpath, in lws_diskcache_trim() 408 lws_snprintf(filepath, sizeof(filepath), "%s/%c/%c/%s", in lws_diskcache_trim()
|
H A D | dir.c | 123 l = (size_t)(ssize_t)lws_snprintf(combo, COMBO_SIZEOF - 2, "%s", dirpath); in lws_dir() 229 lws_snprintf(path, sizeof(path), "%s%c%s", dirpath, csep, in lws_dir_glob_cb() 245 lws_snprintf(path, sizeof(path), "%s%c%s", dirpath, csep, lde->name); in lws_dir_rm_rf_cb() 330 lws_snprintf(path, sizeof(path) - 1, "%s/%s", dirpath, lde->name); in lws_plugins_dir_cb()
|
/third_party/libwebsockets/plugins/acme-client/ |
H A D | protocol_lws_acme_client.c | 183 p += lws_snprintf((char *)p, lws_ptr_diff_size_t(end, p), "%s", ac->key_auth); in callback_chall_http01() 241 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), "{\"alg\":\"RS256\""); in jws_create_packet() 243 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), ",\"kid\":\"%s\"", kid); in jws_create_packet() 245 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), ",\"jwk\":"); in jws_create_packet() 254 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), ",\"url\":\"%s\"", url); in jws_create_packet() 255 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), ",\"nonce\":\"%s\"}", nonce); in jws_create_packet() 263 p1 += lws_snprintf(p1, lws_ptr_diff_size_t(end1, p1), "{\"protected\":\""); in jws_create_packet() 273 p1 += lws_snprintf(p1, lws_ptr_diff_size_t(end1, p1), "\",\"payload\":\""); in jws_create_packet() 283 p1 += lws_snprintf(p1, lws_ptr_diff_size_t(end1, p1), "\",\"signature\":\""); in jws_create_packet() 299 p1 += lws_snprintf(p in jws_create_packet() [all...] |
/third_party/libwebsockets/lib/system/metrics/ |
H A D | metrics.c | 117 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), in lws_metrics_tags_serialize() 327 nl = (size_t)lws_snprintf(pname, sizeof(pname) - 1, "%s.%s", in lws_metric_create() 608 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), "ss=\"%s\",", in lws_metrics_hist_bump_describe_wsi() 616 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), in lws_metrics_hist_bump_describe_wsi() 624 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), "ss=\"%s\",", in lws_metrics_hist_bump_describe_wsi() 631 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), "hostname=\"%s\",", in lws_metrics_hist_bump_describe_wsi() 636 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), "peer=\"%s\",", d1); in lws_metrics_hist_bump_describe_wsi() 638 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), "%s", name); in lws_metrics_hist_bump_describe_wsi() 744 buf += lws_snprintf(buf, lws_ptr_diff_size_t(end, buf), " %u, ", in _lws_metrics_format() 751 buf += lws_snprintf(bu in _lws_metrics_format() [all...] |
/third_party/libwebsockets/lib/core/ |
H A D | logs.c | 100 n += lws_snprintf(&lc->gutag[n], sizeof(lc->gutag) - in __lws_lc_tag() 103 n += lws_snprintf(&lc->gutag[n], sizeof(lc->gutag) - in __lws_lc_tag() 149 n += lws_snprintf(&lc->gutag[n], sizeof(lc->gutag) - 2u - in __lws_lc_tag_append() 232 n = lws_snprintf(p, len, in lwsl_timestamp() 242 n = lws_snprintf(p, len, "[%llu:%04d] %c: ", in lwsl_timestamp() 247 n += lws_snprintf(p + n, len - n, "%6u: ", in lwsl_timestamp() 435 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), "%s: ", _fun); in __lws_logv() 580 p += lws_snprintf(p, 10, "%04X: ", start); in lwsl_hexdump_level_cx() 583 p += lws_snprintf(p, 5, "%02X ", buf[n++]); in lwsl_hexdump_level_cx() 585 p += lws_snprintf( in lwsl_hexdump_level_cx() [all...] |
/third_party/libwebsockets/lib/secure-streams/system/auth-sigv4/ |
H A D | sign.c | 263 buf += lws_snprintf(buf, lws_ptr_diff_size_t(end, buf), "%s\n", in build_sign_string() 265 buf += lws_snprintf(buf, lws_ptr_diff_size_t(end, buf), "%s\n", in build_sign_string() 267 buf += lws_snprintf(buf, lws_ptr_diff_size_t(end, buf), "%s/%s/%s/%s\n", in build_sign_string() 270 buf += lws_snprintf(buf, lws_ptr_diff_size_t(end, buf), "%s", hash); in build_sign_string() 351 buf += lws_snprintf(buf, lws_ptr_diff_size_t(end, buf), "%s", in build_auth_string() 360 buf += lws_snprintf(buf, lws_ptr_diff_size_t(end, buf), "%s", in build_auth_string() 367 buf += lws_snprintf(buf, lws_ptr_diff_size_t(end, buf), "/%s/%s/%s/%s, ", in build_auth_string() 369 buf += lws_snprintf(buf, lws_ptr_diff_size_t(end, buf), "%s", in build_auth_string() 372 buf += lws_snprintf(buf, lws_ptr_diff_size_t(end, buf), in build_auth_string() 380 buf += lws_snprintf(bu in build_auth_string() [all...] |
/third_party/libwebsockets/lib/jose/jwe/ |
H A D | jwe.c | 581 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), "{\"alg\":\"%s\",\"jwk\":", in lws_jwe_create_packet() 591 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), ",\"nonce\":\"%s\"}", nonce); in lws_jwe_create_packet() 600 p1 += lws_snprintf(p1, lws_ptr_diff_size_t(end1, p1), "{\"protected\":\""); in lws_jwe_create_packet() 610 p1 += lws_snprintf(p1, lws_ptr_diff_size_t(end1, p1), "\",\"payload\":\""); in lws_jwe_create_packet() 620 p1 += lws_snprintf(p1, lws_ptr_diff_size_t(end1, p1), "\",\"header\":\""); in lws_jwe_create_packet() 630 p1 += lws_snprintf(p1, lws_ptr_diff_size_t(end1, p1), "\",\"signature\":\""); in lws_jwe_create_packet() 646 p1 += lws_snprintf(p1, lws_ptr_diff_size_t(end1, p1), "\"}"); in lws_jwe_create_packet() 745 plen = lws_snprintf(protected, sizeof(protected), in lws_jwe_render_flattened() 749 p1 += lws_snprintf(p1, lws_ptr_diff_size_t(end1, p1), "{\"protected\":\""); in lws_jwe_render_flattened() 761 p1 += lws_snprintf(p in lws_jwe_render_flattened() [all...] |
/third_party/libwebsockets/plugins/ |
H A D | protocol_post_demo.c | 136 p += lws_snprintf((char *)p, lws_ptr_diff_size_t(end, p), in format_result() 141 p += lws_snprintf((char *)p, lws_ptr_diff_size_t(end, p), in format_result() 151 p += lws_snprintf((char *)p, lws_ptr_diff_size_t(end, p), in format_result() 156 p += lws_snprintf((char *)p, lws_ptr_diff_size_t(end, p), in format_result() 164 p += lws_snprintf((char *)p, lws_ptr_diff_size_t(end, p), in format_result() 169 p += lws_snprintf((char *)p, lws_ptr_diff_size_t(end, p), "</body></html>"); in format_result()
|
H A D | protocol_fulltext_demo.c | 165 p += lws_snprintf((char *)p, lws_ptr_diff_size_t(end, p), in callback_fts() 169 p += lws_snprintf((char *)p, lws_ptr_diff_size_t(end, p), in callback_fts() 183 p += lws_snprintf((char *)p, lws_ptr_diff_size_t(end, p), in callback_fts() 189 p += lws_snprintf((char *)p, in callback_fts() 207 p += lws_snprintf((char *)p, in callback_fts() 231 p += lws_snprintf((char *)p, lws_ptr_diff_size_t(end, p), in callback_fts()
|
H A D | protocol_lws_openmetrics_export.c | 213 buf += lws_snprintf(buf, lws_ptr_diff_size_t(end, buf), in lws_metrics_om_format_agg() 226 buf += lws_snprintf(buf, lws_ptr_diff_size_t(end, buf), in lws_metrics_om_format_agg() 235 buf += lws_snprintf(buf, lws_ptr_diff_size_t(end, buf), in lws_metrics_om_format_agg() 281 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), in lws_metrics_om_format() 290 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), in lws_metrics_om_format() 317 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), in lws_metrics_om_format() 401 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), in ome_prepare() 408 p += lws_snprintf((char *)p, lws_ptr_diff_size_t(end, p), in ome_prepare() 412 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), "} 1\n"); in ome_prepare() 421 p += lws_snprintf( in ome_prepare() [all...] |
/third_party/libwebsockets/lib/roles/http/client/ |
H A D | client-http.c | 134 lws_snprintf(sb, 20, "http_proxy -> %u", in lws_http_client_socket_service() 1076 n = lws_snprintf(arg, sizeof(arg), "multipart/form-data; boundary=\"%s\"", in lws_http_multipart_headers() 1101 *p += lws_snprintf((char *)(*p), lws_ptr_diff_size_t(end, *p), in lws_client_http_multipart() 1109 *p += lws_snprintf((char *)(*p), lws_ptr_diff_size_t(end, *p), "\xd\xa"); in lws_client_http_multipart() 1112 *p += lws_snprintf((char *)(*p), lws_ptr_diff_size_t(end, *p), "--%s\xd\xa" in lws_client_http_multipart() 1117 *p += lws_snprintf((char *)(*p), lws_ptr_diff_size_t(end, *p), in lws_client_http_multipart() 1121 *p += lws_snprintf((char *)(*p), lws_ptr_diff_size_t(end, *p), "\xd\xa" in lws_client_http_multipart() 1124 *p += lws_snprintf((char *)(*p), lws_ptr_diff_size_t(end, *p), "\xd\xa\xd\xa"); in lws_client_http_multipart() 1195 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), in lws_generate_client_handshake() 1198 p += lws_snprintf( in lws_generate_client_handshake() [all...] |
/third_party/libwebsockets/minimal-examples/http-server/minimal-http-server-custom-headers/ |
H A D | minimal-http-server-custom-headers.c | 59 pss->len = lws_snprintf(pr, e, in callback_http() 63 pss->len = lws_snprintf(pr, e, in callback_http() 67 pss->len += lws_snprintf(pr + pss->len, e - (unsigned int)pss->len, in callback_http() 71 pss->len += lws_snprintf(pr + pss->len , e - (unsigned int)pss->len, in callback_http()
|
/third_party/libwebsockets/lib/jose/jwk/ |
H A D | jose_key.c | 467 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), "{"); in lws_jwk_export() 501 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), "\"%s\":\"%s\"", in lws_jwk_export() 511 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), in lws_jwk_export() 533 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), in lws_jwk_export() 551 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), "\"%s\":\"", in lws_jwk_export() 556 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), "\""); in lws_jwk_export() 567 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), "\"%s\":\"", l->name); in lws_jwk_export() 584 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), "\""); in lws_jwk_export() 590 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), in lws_jwk_export()
|
/third_party/libwebsockets/plugins/deaddrop/ |
H A D | protocol_lws_deaddrop.c | 171 p += lws_snprintf(p, lws_ptr_diff_size_t((filepath + sizeof(filepath)), p), in scan_upload_dir() 174 lws_snprintf(p, lws_ptr_diff_size_t((filepath + sizeof(filepath)), p), "%s", in scan_upload_dir() 280 lws_snprintf(pss->filename, sizeof(pss->filename), in file_upload_cb() 288 lws_snprintf(pss->filename, sizeof(pss->filename), in file_upload_cb() 292 lws_snprintf(pss->filename, sizeof(pss->filename), in file_upload_cb() 366 p += lws_snprintf((char *)p, lws_ptr_diff_size_t(end, p), in format_result() 371 p += lws_snprintf((char *)p, lws_ptr_diff_size_t(end, p), "</body></html>"); in format_result() 490 lws_snprintf((char *)buf, sizeof(buf), "%s/%s", vhd->upload_dir, in callback_deaddrop() 508 p += lws_snprintf((char *)p, lws_ptr_diff_size_t(end, p), in callback_deaddrop() 516 p += lws_snprintf((cha in callback_deaddrop() [all...] |
/third_party/libwebsockets/lib/abstract/protocols/smtp/ |
H A D | smtp.c | 252 n = lws_snprintf(p, sizeof(b) - LWS_PRE, "HELO %s\n", c->helo); in lws_smtpc_abs_writeable() 257 n = lws_snprintf(p, sizeof(b) - LWS_PRE, "MAIL FROM: <%s>\n", in lws_smtpc_abs_writeable() 263 n = lws_snprintf(p, sizeof(b) - LWS_PRE, in lws_smtpc_abs_writeable() 269 n = lws_snprintf(p, sizeof(b) - LWS_PRE, "DATA\n"); in lws_smtpc_abs_writeable() 280 n = lws_snprintf(p, sizeof(b) - LWS_PRE, "quit\n"); in lws_smtpc_abs_writeable()
|
/third_party/libwebsockets/minimal-examples/http-server/minimal-http-server-dynamic/ |
H A D | minimal-http-server-dynamic.c | 70 lws_snprintf(pss->path, sizeof(pss->path), "%s", in callback_dynamic_http() 164 p += lws_snprintf((char *)p, lws_ptr_diff_size_t(end, p), "<html>" in callback_dynamic_http() 186 p += lws_snprintf((char *)p, lws_ptr_diff_size_t(end, p), in callback_dynamic_http() 190 p += lws_snprintf((char *)p, lws_ptr_diff_size_t(end, p), "<br><br>"); in callback_dynamic_http()
|
/third_party/libwebsockets/lib/core-net/client/ |
H A D | connect3.c | 365 lws_snprintf(dcce, sizeof(dcce), "conn fail: %d", 473 lws_snprintf(dcce, sizeof(dcce), 487 lws_snprintf(dcce, sizeof(dcce), 505 lws_snprintf(dcce, sizeof(dcce), 514 lws_snprintf(dcce, sizeof(dcce), 534 lws_snprintf(dcce, sizeof(dcce), 553 lws_snprintf(dcce, sizeof(dcce), 673 lws_snprintf(dcce, sizeof(dcce), 682 lws_snprintf(dcce, sizeof(dcce),
|
H A D | connect4.c | 67 plen = lws_snprintf((char *)pt->serv_buf, 256, in lws_client_connect_4_established() 75 plen += lws_snprintf((char *)pt->serv_buf + plen, 256, in lws_client_connect_4_established() 80 plen += lws_snprintf((char *)pt->serv_buf + plen, 5, in lws_client_connect_4_established()
|
/third_party/libwebsockets/lib/jose/jws/ |
H A D | jose.c | 493 out += lws_snprintf(out, lws_ptr_diff_size_t(end, out), in lws_jose_render() 508 out += lws_snprintf(out, lws_ptr_diff_size_t(end, out), in lws_jose_render() 518 out += lws_snprintf(out, lws_ptr_diff_size_t(end, out), "\""); in lws_jose_render() 527 out += lws_snprintf(out, lws_ptr_diff_size_t(end, out), in lws_jose_render() 537 out += lws_snprintf(out, lws_ptr_diff_size_t(end, out), "\""); in lws_jose_render() 548 out += lws_snprintf(out, lws_ptr_diff_size_t(end, out), "%s\"%s\":", in lws_jose_render() 567 out += lws_snprintf(out, lws_ptr_diff_size_t(end, out), in lws_jose_render()
|
/third_party/libwebsockets/minimal-examples/crypto/minimal-crypto-cose-key/ |
H A D | main.c | 70 l = (size_t)lws_snprintf(dump, sizeof(dump), in cose_key_dump() 76 l = (size_t)lws_snprintf(dump, sizeof(dump), in cose_key_dump() 91 l = (size_t)lws_snprintf(dump, sizeof(dump), in cose_key_dump() 97 l = (size_t)lws_snprintf(dump, sizeof(dump), in cose_key_dump()
|