/third_party/libcoap/tests/ |
D | test_uri.c | 347 coap_string_t *uri_path = coap_get_uri_path(&pdu); in t_parse_uri13() local 349 CU_ASSERT(uri_path->length == sizeof(COAP_DEFAULT_URI_WELLKNOWN)-1); in t_parse_uri13() 350 CU_ASSERT_NSTRING_EQUAL(uri_path->s, COAP_DEFAULT_URI_WELLKNOWN, in t_parse_uri13() 352 coap_delete_string(uri_path); in t_parse_uri13() 448 coap_string_t *uri_path = coap_get_uri_path(&pdu); in t_parse_uri18() local 450 CU_ASSERT(uri_path->length == 0); in t_parse_uri18() 454 CU_ASSERT_NSTRING_EQUAL(uri_path->s, "", 1); in t_parse_uri18() 456 coap_delete_string(uri_path); in t_parse_uri18() 473 coap_string_t *uri_path = coap_get_uri_path(&pdu); in t_parse_uri19() local 475 CU_ASSERT(uri_path->length == 4); in t_parse_uri19() [all …]
|
D | test_wellknown.c | 150 coap_str_const_t uri_path = {.length = len, .s = uribuf}; in t_wellknown3() local 151 r = coap_resource_init(&uri_path, 0); in t_wellknown3()
|
/third_party/libcoap/src/ |
D | coap_resource.c | 209 if (!match(r->uri_path, &query_pattern, (flags & MATCH_PREFIX) != 0, 269 coap_resource_init(coap_str_const_t *uri_path, int flags) { argument 278 if (uri_path) 279 uri_path = coap_new_str_const(uri_path->s, uri_path->length); 281 uri_path = coap_new_str_const(null_path->s, null_path->length); 282 } else if (!uri_path) { 284 uri_path = coap_new_str_const(null_path->s, null_path->length); 287 if (uri_path) 288 r->uri_path = uri_path; 311 … r->uri_path = coap_new_str_const(coap_unknown_resource_uri, sizeof(coap_unknown_resource_uri)-1); [all …]
|
D | coap_uri.c | 773 coap_string_t *uri_path = NULL; in coap_get_uri_path() local 785 uri_path = coap_new_string(uri.path.length); in coap_get_uri_path() 786 if (uri_path) { in coap_get_uri_path() 787 memcpy(uri_path->s, uri.path.s, uri.path.length); in coap_get_uri_path() 789 return uri_path; in coap_get_uri_path() 812 uri_path = coap_new_string(length); in coap_get_uri_path() 813 if (uri_path) { in coap_get_uri_path() 814 uri_path->length = length; in coap_get_uri_path() 815 unsigned char *s = uri_path->s; in coap_get_uri_path() 835 return uri_path; in coap_get_uri_path()
|
D | coap_subscribe.c | 67 coap_string_t *uri_path = NULL; in coap_persist_observe_add() local 137 uri_path = coap_get_uri_path(pdu); in coap_persist_observe_add() 138 if (!uri_path) in coap_persist_observe_add() 142 (coap_str_const_t *)uri_path); in coap_persist_observe_add() 145 uri_path->s); in coap_persist_observe_add() 150 uri_path->s); in coap_persist_observe_add() 153 coap_delete_string(uri_path); in coap_persist_observe_add() 154 uri_path = NULL; in coap_persist_observe_add() 294 coap_delete_string(uri_path); in coap_persist_observe_add()
|
D | coap_net.c | 2777 coap_string_t *uri_path = NULL; in handle_request() local 2924 uri_path = coap_get_uri_path(pdu); in handle_request() 2925 if (!uri_path) in handle_request() 2930 coap_str_const_t uri_path_c = { uri_path->length, uri_path->s }; in handle_request() 2962 } else if (coap_string_equal(uri_path, &coap_default_uri_wellknown)) { in handle_request() 2994 (int)uri_path->length, in handle_request() 2995 (int)uri_path->length, in handle_request() 2996 uri_path->s); in handle_request() 3002 (int)uri_path->length, (int)uri_path->length, uri_path->s); in handle_request() 3012 (int)uri_path->length, (int)uri_path->length, uri_path->s); in handle_request() [all …]
|
D | coap_block.c | 2130 coap_delete_str_const(lg_srcv->uri_path); in coap_block_delete_lg_srcv() 2581 coap_string_t *uri_path, in coap_handle_request_put_block() argument 2656 coap_string_equal(uri_path, p->uri_path)) in coap_handle_request_put_block() 2682 p->uri_path = coap_new_str_const(uri_path->s, uri_path->length); in coap_handle_request_put_block()
|
/third_party/libcoap/examples/ |
D | coap-server.c | 656 coap_string_t **uri_path, in get_uri_proxy_scheme_info() argument 699 *uri_path = coap_get_uri_path(request); in get_uri_proxy_scheme_info() 700 if (*uri_path) { in get_uri_proxy_scheme_info() 701 uri->path.s = (*uri_path)->s; in get_uri_proxy_scheme_info() 702 uri->path.length = (*uri_path)->length; in get_uri_proxy_scheme_info() 989 coap_string_t *uri_path = NULL; in hnd_proxy_uri() local 1010 if (!get_uri_proxy_scheme_info(request, opt, &uri, &uri_path, in hnd_proxy_uri() 1175 coap_delete_string(uri_path); in hnd_proxy_uri() 1183 coap_string_t *uri_path; member 1205 coap_string_t *uri_path; in hnd_delete() local [all …]
|
D | coap-rd.c | 181 HASH_FIND(hh, resources, resource->uri_path.s, resource->uri_path.length, rd); in hnd_put_resource()
|
/third_party/libcoap/include/coap3/ |
D | coap_resource_internal.h | 81 coap_str_const_t *uri_path; /**< the key used for hash lookup for this member 122 HASH_ADD(hh, (r), uri_path->s[0], (obj)->uri_path->length, (obj))
|
D | coap_resource.h | 174 coap_resource_t *coap_resource_init(coap_str_const_t *uri_path, 287 coap_str_const_t *uri_path); 503 coap_str_const_t *uri_path);
|
D | coap_block_internal.h | 192 coap_str_const_t *uri_path; /** set to uri_path if unknown resource */ member 276 coap_string_t *uri_path,
|
/third_party/libcoap/tests/oss-fuzz/ |
D | pdu_parse_tcp_target.c | 13 coap_string_t *uri_path = coap_get_uri_path(pdu); in LLVMFuzzerTestOneInput() local 18 coap_delete_string(uri_path); in LLVMFuzzerTestOneInput()
|
D | pdu_parse_udp_target.c | 13 coap_string_t *uri_path = coap_get_uri_path(pdu); in LLVMFuzzerTestOneInput() local 18 coap_delete_string(uri_path); in LLVMFuzzerTestOneInput()
|
D | pdu_parse_ws_target.c | 13 coap_string_t *uri_path = coap_get_uri_path(pdu); in LLVMFuzzerTestOneInput() local 18 coap_delete_string(uri_path); in LLVMFuzzerTestOneInput()
|
/third_party/libcoap/man/ |
D | coap_resource.txt.in | 298 *coap_resource_get_uri_path*() returns the uri_path or NULL if 463 * The uri_path string is a const pointer 491 /* get the uri_path */ 513 check_url_fn(coap_string_t *uri_path, uint8_t code) { 515 (void)uri_path; 533 coap_string_t *uri_path; 535 /* get the uri_path - which will get used by coap_resource_init() */ 536 uri_path = coap_get_uri_path(request); 537 if (!uri_path) { 543 if (!check_url_fn (uri_path, req_code)) { [all …]
|
D | coap_persist.txt.in | 270 coap_str_const_t *uri_path = coap_resource_get_uri_path(resource); 272 if (!uri_path) { 279 if (coap_string_equal(uri_path, coap_make_str_const("time"))) {
|
D | coap_observe.txt.in | 225 coap_str_const_t *uri_path = coap_resource_get_uri_path(resource); 227 if (!uri_path) { 234 if (coap_string_equal(uri_path, coap_make_str_const("time"))) {
|
/third_party/curl/lib/ |
D | cookie.c | 160 char *uri_path = NULL; in pathmatch() local 171 uri_path = strdup(request_uri); in pathmatch() 172 if(!uri_path) in pathmatch() 174 pos = strchr(uri_path, '?'); in pathmatch() 179 if(0 == strlen(uri_path) || uri_path[0] != '/') { in pathmatch() 180 strstore(&uri_path, "/", 1); in pathmatch() 181 if(!uri_path) in pathmatch() 195 uri_path_len = strlen(uri_path); in pathmatch() 203 if(strncmp(cookie_path, uri_path, cookie_path_len)) { in pathmatch() 215 if(uri_path[cookie_path_len] == '/') { in pathmatch() [all …]
|