/third_party/libwebsockets/test-apps/ |
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()
|
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/system/metrics/ |
D | metrics.c | 117 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), in lws_metrics_tags_serialize() 127 return lws_ptr_diff_size_t(p, buf); in lws_metrics_tags_serialize() 606 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), "ss=\"%s\",", in lws_metrics_hist_bump_describe_wsi() 614 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), in lws_metrics_hist_bump_describe_wsi() 622 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), "ss=\"%s\",", in lws_metrics_hist_bump_describe_wsi() 629 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), "hostname=\"%s\",", in lws_metrics_hist_bump_describe_wsi() 634 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), "peer=\"%s\",", d1); in lws_metrics_hist_bump_describe_wsi() 636 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), "%s", name); in lws_metrics_hist_bump_describe_wsi() 742 buf += lws_snprintf(buf, lws_ptr_diff_size_t(end, buf), " %u, ", in _lws_metrics_format() 745 buf += lws_humanize(buf, lws_ptr_diff_size_t(end, buf), in _lws_metrics_format() [all …]
|
/third_party/libwebsockets/plugins/ |
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() 295 lws_ptr_diff_size_t(p, buf)); in lws_metrics_om_format() 309 lws_ptr_diff_size_t(end, p)); in lws_metrics_om_format() 314 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() 324 return lws_metrics_om_ac_stash(pss, buf, lws_ptr_diff_size_t(p, buf)); in lws_metrics_om_format() [all …]
|
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() 187 while (pss->fp && lws_ptr_diff_size_t(end, p) > 256) { in callback_fts() 190 lws_ptr_diff_size_t(end, p), in callback_fts() 208 lws_ptr_diff_size_t(end, p), in callback_fts() 231 p += lws_snprintf((char *)p, lws_ptr_diff_size_t(end, p), in callback_fts() 236 lws_ptr_diff_size_t(p, start), (enum lws_write_protocol)n) != in callback_fts()
|
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() 238 n = lws_write(wsi, start, lws_ptr_diff_size_t(p, start), in callback_post_demo()
|
D | protocol_lws_status.c | 143 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), in callback_lws_status() 182 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), in callback_lws_status() 207 m = lws_write(wsi, (unsigned char *)start, lws_ptr_diff_size_t(p, start), (unsigned int)n); in callback_lws_status()
|
/third_party/libwebsockets/lib/jose/jwe/ |
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() 602 n = lws_jws_base64_enc(start, lws_ptr_diff_size_t(p, start), p1, lws_ptr_diff_size_t(end1, p1)); in lws_jwe_create_packet() 610 p1 += lws_snprintf(p1, lws_ptr_diff_size_t(end1, p1), "\",\"payload\":\""); in lws_jwe_create_packet() 612 n = lws_jws_base64_enc(payload, len, p1, lws_ptr_diff_size_t(end1, p1)); in lws_jwe_create_packet() 620 p1 += lws_snprintf(p1, lws_ptr_diff_size_t(end1, p1), "\",\"header\":\""); in lws_jwe_create_packet() 622 n = lws_jws_base64_enc(payload, len, p1, lws_ptr_diff_size_t(end1, p1)); in lws_jwe_create_packet() 630 p1 += lws_snprintf(p1, lws_ptr_diff_size_t(end1, p1), "\",\"signature\":\""); in lws_jwe_create_packet() 636 n = lws_jws_sign_from_b64(&jwe->jose, &jws, p1, lws_ptr_diff_size_t(end1, p1)); in lws_jwe_create_packet() [all …]
|
/third_party/libwebsockets/lib/roles/cgi/ |
D | cgi-server.c | 154 sum += lws_snprintf(sum, lws_ptr_diff_size_t(sumend, sum), "%s ", exec_array[0]); in lws_cgi() 170 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), "HTTPS=ON"); in lws_cgi() 214 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), in lws_cgi() 217 sum += lws_snprintf(sum, lws_ptr_diff_size_t(sumend, sum), "%s ", in lws_cgi() 221 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), in lws_cgi() 224 sum += lws_snprintf(sum, lws_ptr_diff_size_t(sumend, sum), "%s ", in lws_cgi() 233 sum += lws_snprintf(sum, lws_ptr_diff_size_t(sumend, sum), "%s ", in lws_cgi() 237 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), "QUERY_STRING="); in lws_cgi() 272 sum += lws_snprintf(sum, lws_ptr_diff_size_t(sumend, sum), "%s", env_array[n - 1]); in lws_cgi() 276 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), "PATH_INFO=%s", in lws_cgi() [all …]
|
/third_party/libwebsockets/plugins/acme-client/ |
D | protocol_lws_acme_client.c | 192 p += lws_snprintf((char *)p, lws_ptr_diff_size_t(end, p), "%s", ac->key_auth); in callback_chall_http01() 194 if (lws_write(wsi, (uint8_t *)start, lws_ptr_diff_size_t(p, start), in callback_chall_http01() 250 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), "{\"alg\":\"RS256\""); in jws_create_packet() 252 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), ",\"kid\":\"%s\"", kid); in jws_create_packet() 254 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), ",\"jwk\":"); in jws_create_packet() 263 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), ",\"url\":\"%s\"", url); in jws_create_packet() 264 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), ",\"nonce\":\"%s\"}", nonce); in jws_create_packet() 272 p1 += lws_snprintf(p1, lws_ptr_diff_size_t(end1, p1), "{\"protected\":\""); in jws_create_packet() 274 n = lws_jws_base64_enc(start, lws_ptr_diff_size_t(p, start), p1, lws_ptr_diff_size_t(end1, p1)); in jws_create_packet() 282 p1 += lws_snprintf(p1, lws_ptr_diff_size_t(end1, p1), "\",\"payload\":\""); in jws_create_packet() [all …]
|
/third_party/libwebsockets/lib/secure-streams/system/auth-sigv4/ |
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(buf, lws_ptr_diff_size_t(end, buf), in build_auth_string()
|
/third_party/libwebsockets/lib/jose/jwk/ |
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() 578 jwk->e[l->idx].len, p, lws_ptr_diff_size_t(end, p) - 4); 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/lib/roles/http/client/ |
D | client-http.c | 283 n = lws_ssl_capable_write(wsi, (unsigned char *)sb, lws_ptr_diff_size_t(p, sb)); in lws_http_client_socket_service() 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(p, lws_ptr_diff_size_t(end, p), in lws_generate_client_handshake() 1202 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), in lws_generate_client_handshake() [all …]
|
/third_party/libwebsockets/lib/jose/jws/ |
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/http-server/minimal-http-server-dynamic/ |
D | minimal-http-server-dynamic.c | 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() 194 if (lws_write(wsi, (uint8_t *)start, lws_ptr_diff_size_t(p, start), (enum lws_write_protocol)n) != in callback_dynamic_http()
|
/third_party/libwebsockets/plugins/deaddrop/ |
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() 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() 508 p += lws_snprintf((char *)p, lws_ptr_diff_size_t(end, p), in callback_deaddrop() 516 p += lws_snprintf((char *)p, lws_ptr_diff_size_t(end, p), in callback_deaddrop() 532 p += lws_snprintf((char *)p, lws_ptr_diff_size_t(end, p), in callback_deaddrop() 540 n = lws_write(wsi, start, lws_ptr_diff_size_t(p, start), in callback_deaddrop() 637 n = lws_write(wsi, start, lws_ptr_diff_size_t(p, start), in callback_deaddrop()
|
/third_party/libwebsockets/lib/core-net/ |
D | socks5-client.c | 44 if (lws_ptr_diff_size_t(p_at, socks) > (sizeof(user) + in lws_set_socks() 52 if (lws_ptr_diff_size_t(p_colon, socks) > in lws_set_socks() 57 if (lws_ptr_diff_size_t(p_at, p_colon) > in lws_set_socks() 64 lws_ptr_diff_size_t(p_colon, socks) + 1); in lws_set_socks() 66 lws_ptr_diff_size_t(p_at, (p_colon + 1)) + 1); in lws_set_socks()
|
D | route.c | 46 lws_snprintf(fin, lws_ptr_diff_size_t(end, fin), in _lws_routing_entry_dump() 52 lws_snprintf(fin, lws_ptr_diff_size_t(end, fin), in _lws_routing_entry_dump() 58 lws_snprintf(fin, lws_ptr_diff_size_t(end, fin), in _lws_routing_entry_dump()
|
/third_party/libwebsockets/lib/core-net/client/ |
D | client.c | 46 if (lws_ptr_diff_size_t(p, proxy) > sizeof(authstring) - 1) in lws_set_proxy() 49 lws_strncpy(authstring, proxy, lws_ptr_diff_size_t(p, proxy) + 1); in lws_set_proxy()
|
/third_party/libwebsockets/minimal-examples/http-client/minimal-http-client-post/ |
D | minimal-http-client-post.c | 126 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), "my text field\xd\xa"); in callback_http() 132 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), in callback_http() 155 if (lws_write(wsi, (uint8_t *)start, lws_ptr_diff_size_t(p, start), (enum lws_write_protocol)n) in callback_http()
|
/third_party/libwebsockets/minimal-examples/http-server/minimal-http-server-sse/ |
D | minimal-http-server-sse.c | 101 p += lws_snprintf((char *)p, lws_ptr_diff_size_t(end, p), in callback_sse() 106 if (lws_write(wsi, (uint8_t *)start, lws_ptr_diff_size_t(p, start), in callback_sse()
|
/third_party/libwebsockets/lib/roles/http/ |
D | cookie.c | 436 path_len = lws_ptr_diff_size_t(dl_path, path); in lws_cookie_attach_cookies() 600 dl = memchr(tk_head, '=', lws_ptr_diff_size_t(tk_end, in lws_parse_set_cookie() 606 c.l[CE_NAME] = lws_ptr_diff_size_t(dl, tk_head); in lws_parse_set_cookie() 616 c.l[CE_VALUE] = lws_ptr_diff_size_t(tk_end, in lws_parse_set_cookie() 642 lws_ptr_diff_size_t(tk_end, in lws_parse_set_cookie() 654 c.l[n] = lws_ptr_diff_size_t(tk_end, c.f[n]) + 1; in lws_parse_set_cookie()
|
/third_party/libwebsockets/lib/core/ |
D | logs.c | 74 ll = sizeof(lc->gutag) - lws_ptr_diff_size_t(cp, lc->gutag) - k - 1; in __lws_lc_tag() 425 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), "%s: ", _fun); in __lws_logv() 431 n = vsnprintf(p, lws_ptr_diff_size_t(end, p), format, vl); in __lws_logv() 454 cx->u.emit_cx(cx, filter, buf, lws_ptr_diff_size_t(p, buf)); in __lws_logv()
|
/third_party/libwebsockets/lib/secure-streams/protocols/ |
D | ss-raw.c | 139 buflen = lws_ptr_diff_size_t(end, p); in secstream_raw() 152 if (lws_write(wsi, buf + LWS_PRE, lws_ptr_diff_size_t(p, buf + LWS_PRE), in secstream_raw()
|
/third_party/libwebsockets/lib/roles/mqtt/client/ |
D | client-mqtt-handshake.c | 170 if (lws_write(wsi, (unsigned char *)&b[LWS_PRE], lws_ptr_diff_size_t(p, start), in lws_mqtt_client_send_connect() 192 if (lws_write(wsi, (unsigned char *)&b[LWS_PRE], lws_ptr_diff_size_t(p, start), in lws_mqtt_client_send_disconnect()
|