Home
last modified time | relevance | path

Searched refs:path_match (Results 1 – 19 of 19) sorted by relevance

/third_party/libwebsockets/lib/jose/jws/
Djose.c177 if (!ctx->path_match) in lws_jws_jose_cb()
178 args->jwk_jctx.path_match = 0; in lws_jws_jose_cb()
181 if (args->jwk_jctx.path_match) in lws_jws_jose_cb()
194 if (!(reason & LEJP_FLAG_CB_IS_VALUE) || !ctx->path_match) in lws_jws_jose_cb()
199 switch (ctx->path_match - 1) { in lws_jws_jose_cb()
354 if (!args->jose->e[ctx->path_match - 1].buf) { in lws_jws_jose_cb()
355 args->jose->e[ctx->path_match - 1].buf = (uint8_t *)args->temp; in lws_jws_jose_cb()
356 args->jose->e[ctx->path_match - 1].len = 0; in lws_jws_jose_cb()
362 args->jose->e[ctx->path_match - 1].len += ctx->npos; in lws_jws_jose_cb()
366 (const char *)args->jose->e[ctx->path_match - 1].buf, in lws_jws_jose_cb()
[all …]
Djws.c69 if (!(reason & LEJP_FLAG_CB_IS_VALUE) || !ctx->path_match) in lws_jws_json_cb()
72 switch (ctx->path_match - 1) { in lws_jws_json_cb()
/third_party/libwebsockets/lib/misc/
Dlejp.c80 ctx->path_match = 0; in lejp_construct()
157 for (n = 0; !ctx->path_match && in lejp_check_path_match()
188 ctx->path_match = (uint8_t)(n + 1); in lejp_check_path_match()
193 if (!ctx->path_match) in lejp_check_path_match()
464 ctx->path_match = 0; in lejp_parse()
504 if (ctx->path_match && in lejp_parse()
510 ctx->path_match = 0; in lejp_parse()
650 ctx->path_match = 0; in lejp_parse()
655 if (ctx->path_match && in lejp_parse()
661 ctx->path_match = 0; in lejp_parse()
[all …]
Dlws-struct-lejp.c65 ctx->path_match = 1; in lws_struct_schema_only_lejp_cb()
78 if (reason != LEJPCB_VAL_STR_END || ctx->path_match != 1) in lws_struct_schema_only_lejp_cb()
157 if (!ctx->path_match) in lws_struct_default_lejp_cb()
159 map = &args->map_st[ctx->pst_sp][ctx->path_match - 1]; in lws_struct_default_lejp_cb()
169 [ctx->pst[ctx->pst_sp - 1].path_match - 1]; in lws_struct_default_lejp_cb()
173 if (!ctx->path_match) { in lws_struct_default_lejp_cb()
179 map = &args->map_st[ctx->pst_sp][ctx->path_match - 1]; in lws_struct_default_lejp_cb()
198 [ctx->pst[ctx->pst_sp - 1].path_match - 1]; in lws_struct_default_lejp_cb()
201 if (!ctx->path_match) in lws_struct_default_lejp_cb()
204 map = &args->map_st[ctx->pst_sp][ctx->path_match - 1]; in lws_struct_default_lejp_cb()
[all …]
Dlecp.c130 for (n = 0; !ctx->path_match && in lecp_check_path_match()
163 ctx->path_match = (uint8_t)(n + 1); in lecp_check_path_match()
168 if (!ctx->path_match) in lecp_check_path_match()
/third_party/libwebsockets/lib/roles/http/server/
Dlejp-conf.c279 if (!(reason & LEJP_FLAG_CB_IS_VALUE) || !ctx->path_match) in lejp_globals_cb()
284 ctx->path_match == LWJPGP_REJECT_SERVICE_KEYWORDS_NAME + 1) { in lejp_globals_cb()
300 switch (ctx->path_match - 1) { in lejp_globals_cb()
381 lwsl_notice(" %d: %s (%d)\n", reason, ctx->path, ctx->path_match); in lejp_vhosts_cb()
386 if (reason == LEJPCB_OBJECT_START && ctx->path_match == LEJPVP + 1) { in lejp_vhosts_cb()
463 ctx->path_match == LEJPVP_MOUNTS + 1) { in lejp_vhosts_cb()
470 ctx->path_match == LEJPVP_PROTOCOL_NAME + 1) { in lejp_vhosts_cb()
488 ctx->path_match == LEJPVP_HEADERS_NAME + 1) { in lejp_vhosts_cb()
516 (ctx->path_match == LEJPVP + 1 || !ctx->path[0]) && in lejp_vhosts_cb()
570 ctx->path_match == LEJPVP_MOUNTS + 1) { in lejp_vhosts_cb()
[all …]
/third_party/nghttp2/src/
Dasio_server_serve_mux.cc107 bool path_match(const std::string &pattern, const std::string &path) { in path_match() function
120 if (!path_match(pattern, path)) { in match()
/third_party/libwebsockets/lib/jose/jwk/
Djose_key.c191 if (reason == LEJPCB_OBJECT_START && ctx->path_match == 0 + 1) in cb_jwk()
202 if (reason == LEJPCB_OBJECT_END && ctx->path_match == 0 + 1) { in cb_jwk()
307 if (!(reason & LEJP_FLAG_CB_IS_VALUE) || !ctx->path_match) in cb_jwk()
310 if (ctx->path_match == 0 + 1) in cb_jwk()
313 idx = tok_map[ctx->path_match - 1]; in cb_jwk()
/third_party/libwebsockets/lib/secure-streams/
Dpolicy-json.c325 switch (ctx->path_match - 1) { in lws_ss_policy_parser_cb()
352 (ctx->path_match - 1 == LSSPPT_PLUGINS || in lws_ss_policy_parser_cb()
353 ctx->path_match - 1 == LSSPPT_METADATA || in lws_ss_policy_parser_cb()
354 ctx->path_match - 1 == LSSPPT_HTTPRESPMAP)) in lws_ss_policy_parser_cb()
364 ctx->path_match - 1 == LSSPPT_TRUST_STORES_STACK && !a->count) { in lws_ss_policy_parser_cb()
470 if (!(reason & LEJP_FLAG_CB_IS_VALUE) || !ctx->path_match) in lws_ss_policy_parser_cb()
473 switch (ctx->path_match - 1) { in lws_ss_policy_parser_cb()
609 if ((ctx->path_match - 1) == LSSPPT_SERVER_CERT) in lws_ss_policy_parser_cb()
621 ctx->path_match - 1, x); in lws_ss_policy_parser_cb()
926 (ctx->path_match - 1) - LSSPPT_HTTP_AUTH_HEADER]; in lws_ss_policy_parser_cb()
/third_party/libwebsockets/include/libwebsockets/
Dlws-lejp.h215 uint8_t path_match; member
255 uint8_t path_match; member
Dlws-lecp.h242 uint8_t path_match; member
287 uint8_t path_match; member
/third_party/libwebsockets/plugins/acme-client/
Dprotocol_lws_acme_client.c360 if (reason == LEJPCB_VAL_STR_START && ctx->path_match) { in cb_dir()
363 s->dest = s->ac->urls[ctx->path_match - 1]; in cb_dir()
367 if (!(reason & LEJP_FLAG_CB_IS_VALUE) || !ctx->path_match) in cb_dir()
413 if (!(reason & LEJP_FLAG_CB_IS_VALUE) || !ctx->path_match) in cb_order()
416 switch (ctx->path_match - 1) { in cb_order()
479 if (!(reason & LEJP_FLAG_CB_IS_VALUE) || !ctx->path_match) in cb_authz()
482 switch (ctx->path_match - 1) { in cb_authz()
550 if (!(reason & LEJP_FLAG_CB_IS_VALUE) || !ctx->path_match) in cb_chac()
553 switch (ctx->path_match - 1) { in cb_chac()
/third_party/libwebsockets/lib/secure-streams/system/auth-api.amazon.com/
Dauth.c79 if (!(reason & LEJP_FLAG_CB_IS_VALUE) || !ctx->path_match) in auth_api_amazon_com_parser_cb()
82 switch (ctx->path_match - 1) { in auth_api_amazon_com_parser_cb()
/third_party/libwebsockets/test-apps/
Dtest-lejp.c83 ctx->path_match, ctx->pst[ctx->pst_sp].ppos); in cb()
Dtest-lecp.c67 ctx->path_match, ctx->pst[ctx->pst_sp].ppos); in cb()
/third_party/libwebsockets/minimal-examples/secure-streams/minimal-secure-streams-hugeurl/
Dminimal-secure-streams.c173 if (ctx->path_match - 1) in lws_httpbin_json_cb()
/third_party/libwebsockets/lib/jose/jwe/
Djwe.c64 if (!(reason & LEJP_FLAG_CB_IS_VALUE) || !ctx->path_match) in lws_jwe_json_cb()
67 switch (ctx->path_match - 1) { in lws_jwe_json_cb()
/third_party/libwebsockets/READMEs/
DREADME.json-lejp.md79 checkable in the callback using `ctx->path_match`, it's 0 if no active match,
DREADME.cbor-lecp.md138 checkable in the callback using `ctx->path_match`, it's 0 if no active match,