Home
last modified time | relevance | path

Searched refs:token_len (Results 1 – 25 of 26) sorted by relevance

12

/third_party/libwebsockets/lib/plat/unix/
Dunix-resolv.c63 if (!ns && !strncmp("nameserver", ts.token, ts.token_len)) { in lws_plat_asyncdns_init()
73 if (ts.token_len > (int)sizeof(ads) - 1) in lws_plat_asyncdns_init()
76 memcpy(ads, ts.token, ts.token_len); in lws_plat_asyncdns_init()
77 ads[ts.token_len] = '\0'; in lws_plat_asyncdns_init()
/third_party/libwebsockets/lib/system/fault-injection/
Dfault-injection.c321 lws_strnncpy(nm, ts.token, ts.token_len, in lws_fi_deserialize()
327 (int)ts.token_len, ts.token); in lws_fi_deserialize()
346 pat = lws_zalloc((ts.token_len >> 3) + 1, in lws_fi_deserialize()
351 fi.count = (uint64_t)ts.token_len; in lws_fi_deserialize()
353 for (n = 0; n < ts.token_len; n++) in lws_fi_deserialize()
360 (ts.token_len >> 3) + 1); in lws_fi_deserialize()
368 for (m = 0; m < (int)ts.token_len - 1; m++) in lws_fi_deserialize()
377 if (m != (int)ts.token_len && in lws_fi_deserialize()
/third_party/libwebsockets/lib/core/
Dlibwebsockets.c830 ts->token_len = 0; in lws_tokenize()
868 ts->token_len++; in lws_tokenize()
894 ts->token_len = 0; in lws_tokenize()
925 ts->token_len++; in lws_tokenize()
965 ts->token_len = 1; in lws_tokenize()
969 ts->token_len++; in lws_tokenize()
994 ts->token_len = 1; in lws_tokenize()
999 ts->token_len++; in lws_tokenize()
1051 if (ts->token_len + 1 >= max) in lws_tokenize_cstr()
1054 memcpy(str, ts->token, ts->token_len); in lws_tokenize_cstr()
[all …]
/third_party/libwebsockets/minimal-examples/api-tests/api-test-lws_tokenize/
Dmain.c547 lws_strnncpy(dotstar, ts.token, ts.token_len, in main()
551 (int)ts.token_len); in main()
568 (ts.token_len != exp->len || in main()
570 lws_strnncpy(dotstar, ts.token, ts.token_len, in main()
573 (int)ts.token_len, (int)exp->len, in main()
636 lws_strnncpy(dotstar, ts.token, ts.token_len, in main()
641 dotstar, (int)ts.token_len); in main()
/third_party/libwebsockets/lib/core-net/
Dnetwork.c690 if (ts.token_len > 4) in lws_parse_numeric_address()
692 memcpy(t, ts.token, ts.token_len); in lws_parse_numeric_address()
693 t[ts.token_len] = '\0'; in lws_parse_numeric_address()
694 for (n = 0; n < ts.token_len; n++) in lws_parse_numeric_address()
704 if (ts.token_len > 3) in lws_parse_numeric_address()
706 memcpy(t, ts.token, ts.token_len); in lws_parse_numeric_address()
707 t[ts.token_len] = '\0'; in lws_parse_numeric_address()
708 for (n = 0; n < ts.token_len; n++) in lws_parse_numeric_address()
/third_party/libwebsockets/plugins/raw-proxy/
Dprotocol_lws_raw_proxy.c209 if (!strncmp(ts.token, "ipv6", ts.token_len)) in callback_raw_proxy()
212 if (strncmp(ts.token, "ipv4", ts.token_len)) in callback_raw_proxy()
222 ts.token_len + 1 >= (int)sizeof(vhd->addr)) in callback_raw_proxy()
225 lws_strncpy(vhd->addr, ts.token, ts.token_len + 1); in callback_raw_proxy()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/
Dsae.c873 size_t *token_len) in sae_parse_commit_token() argument
880 if (token_len) in sae_parse_commit_token()
881 *token_len = 0; in sae_parse_commit_token()
922 if (token_len) in sae_parse_commit_token()
923 *token_len = tlen; in sae_parse_commit_token()
1121 const u8 **token, size_t *token_len, int *allowed_groups) in sae_parse_commit() argument
1135 sae_parse_commit_token(sae, &pos, end, token, token_len); in sae_parse_commit()
Dsae.h75 const u8 **token, size_t *token_len, int *allowed_groups);
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/
Dsae.c1807 size_t *token_len, int h2e) in sae_parse_commit_token() argument
1813 if (token_len) in sae_parse_commit_token()
1814 *token_len = 0; in sae_parse_commit_token()
1835 if (token_len) in sae_parse_commit_token()
1836 *token_len = tlen; in sae_parse_commit_token()
1843 const u8 **token, size_t *token_len) in sae_parse_token_container() argument
1850 *token_len = pos[1] - 1; in sae_parse_token_container()
1852 *token, *token_len); in sae_parse_token_container()
2093 const u8 **token, size_t *token_len, int *allowed_groups, in sae_parse_commit() argument
2108 sae_parse_commit_token(sae, &pos, end, token, token_len, h2e); in sae_parse_commit()
[all …]
Dsae.h133 const u8 **token, size_t *token_len, int *allowed_groups,
/third_party/libwebsockets/include/libwebsockets/
Dlws-tokenize.h91 size_t token_len; /**< the length of the identied token or delimiter */ member
/third_party/libwebsockets/lib/secure-streams/protocols/
Dss-h1.c703 ts.token_len == 8) { in secstream_h1()
712 ts.token, ts.token_len, in secstream_h1()
715 (uint8_t)(ts.token_len + 4); in secstream_h1()
/third_party/libwebsockets/lib/misc/
Ddir.c384 ts.token_len, in lws_plugins_init()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
Dsme.c1272 size_t token_len; in sme_sae_auth() local
1299 token_len = len - sizeof(le16); in sme_sae_auth()
1302 if (token_len < 3) { in sme_sae_auth()
1309 token_pos[1] > token_len - 2 || in sme_sae_auth()
1315 token_len = token_pos[1] - 1; in sme_sae_auth()
1318 wpa_s->sme.sae_token = wpabuf_alloc_copy(token_pos, token_len); in sme_sae_auth()
Dctrl_iface.c6049 long int token_len; local
6062 token_len = last - token;
6064 if (token_len == 3 &&
6065 os_memcmp(token, "UDP", token_len) == 0) {
6067 } else if (token_len == 3 &&
6068 os_memcmp(token, "MAC", token_len) == 0) {
/third_party/libwebsockets/lib/jose/jws/
Djws.c1002 if (ts.e == LWS_TOKZE_TOKEN && ts.token_len == n && in lws_jwt_signed_validate()
1003 !strncmp(jose.alg->alg, ts.token, ts.token_len)) in lws_jwt_signed_validate()
/third_party/libwebsockets/lib/roles/ws/
Dclient-ws.c305 if (!strncasecmp(ts.token, "upgrade", ts.token_len)) in lws_client_ws_upgrade()
Dserver-ws.c474 if (!strncasecmp(ts.token, "upgrade", ts.token_len)) in lws_process_ws_upgrade()
/third_party/libwebsockets/lib/system/metrics/
Dmetrics.c266 if (!lws_strcmp_wildcard(ts.token, ts.token_len, name, in lws_metrics_check_in_policy()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/
Dieee802_11.c548 const u8 *token, size_t token_len) in check_sae_token() argument
556 if (token_len != SHA256_MAC_LEN) in check_sae_token()
1038 size_t token_len = 0; in handle_auth_sae() local
1139 &token_len, groups); in handle_auth_sae()
1157 if (token && check_sae_token(hapd, sta->addr, token, token_len) in handle_auth_sae()
/third_party/libwebsockets/lib/roles/http/server/
Dserver.c2106 if (strncmp(ts.token, wsi->a.vhost->name, ts.token_len)) { in lws_confirm_host_header()
2107 buf[(size_t)(ts.token - buf) + ts.token_len] = '\0'; in lws_confirm_host_header()
/third_party/libcoap/src/
Dcoap_block.c1992 size_t token_len; in coap_block_test_q_block() local
2012 coap_session_new_token(session, &token_len, token); in coap_block_test_q_block()
2013 coap_add_token(pdu, token_len, token); in coap_block_test_q_block()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
Dieee802_11.c745 const u8 *token, size_t token_len) in check_comeback_token() argument
753 if (token_len != SHA256_MAC_LEN || in check_comeback_token()
1352 size_t token_len = 0; in handle_auth_sae() local
1454 &token_len, groups, status_code == in handle_auth_sae()
1475 check_comeback_token(hapd, sta->addr, token, token_len) in handle_auth_sae()
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/
Dctrl_iface.c5453 long int token_len; in p2ps_ctrl_parse_cpt_priority() local
5466 token_len = last - token; in p2ps_ctrl_parse_cpt_priority()
5468 if (token_len == 3 && in p2ps_ctrl_parse_cpt_priority()
5469 os_memcmp(token, "UDP", token_len) == 0) { in p2ps_ctrl_parse_cpt_priority()
5471 } else if (token_len == 3 && in p2ps_ctrl_parse_cpt_priority()
5472 os_memcmp(token, "MAC", token_len) == 0) { in p2ps_ctrl_parse_cpt_priority()
/third_party/skia/third_party/externals/wuffs/release/c/
Dwuffs-v0.3.c39391 uint64_t token_len = token.length(); in DecodeCbor() local
39393 ((io_buf->meta.ri - cursor_index) < token_len)) { in DecodeCbor()
39399 cursor_index += static_cast<size_t>(token_len); in DecodeCbor()
39460 str.append(ptr, static_cast<size_t>(token_len)); in DecodeCbor()
39509 switch (token_len) { in DecodeCbor()
39558 if (token_len == 9) { in DecodeCbor()
40094 uint64_t token_len = token.length(); \
40096 ((io_buf->meta.ri - cursor_index) < token_len)) { \
40103 cursor_index += static_cast<size_t>(token_len)
40218 str.append(ptr, static_cast<size_t>(token_len)); in DecodeJson_WalkJsonPointerFragment()
[all …]

12