Home
last modified time | relevance | path

Searched refs:lws_ptr_diff_size_t (Results 1 – 25 of 55) sorted by relevance

123

/third_party/libwebsockets/test-apps/
Dtest-lecp.c73 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()
Dtest-lejp.c55 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/
Dmetrics.c117 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/
Dprotocol_lws_openmetrics_export.c213 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 …]
Dprotocol_fulltext_demo.c165 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()
Dprotocol_post_demo.c136 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()
Dprotocol_lws_status.c143 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/
Djwe.c581 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/
Dcgi-server.c154 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/
Dprotocol_lws_acme_client.c192 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/
Dsign.c263 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/
Djose_key.c467 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/
Dclient-http.c283 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/
Djose.c493 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/
Dminimal-http-server-dynamic.c164 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/
Dprotocol_lws_deaddrop.c171 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/
Dsocks5-client.c44 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()
Droute.c46 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/
Dclient.c46 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/
Dminimal-http-client-post.c126 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/
Dminimal-http-server-sse.c101 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/
Dcookie.c436 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/
Dlogs.c74 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/
Dss-raw.c139 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/
Dclient-mqtt-handshake.c170 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()

123