/third_party/libcoap/src/ |
D | coap_str.c | 31 s = (coap_string_t *)coap_malloc_type(COAP_STRING, in coap_new_string() 47 coap_free_type(COAP_STRING, s); in coap_delete_string() 62 coap_free_type(COAP_STRING, s); in coap_delete_str_const() 93 coap_binary_t *new = coap_realloc_type(COAP_STRING, in coap_resize_binary() 106 coap_free_type(COAP_STRING, s); in coap_delete_binary() 121 coap_free_type(COAP_STRING, s); in coap_delete_bin_const()
|
D | coap_subscribe.c | 425 new = coap_malloc_type(COAP_STRING, ctx->observe_save_file->length + 5); in coap_op_observe_load_disk() 467 coap_free_type(COAP_STRING, new); in coap_op_observe_load_disk() 480 coap_free_type(COAP_STRING, new); in coap_op_observe_load_disk() 507 new = coap_malloc_type(COAP_STRING, in coap_op_observe_added() 550 coap_free_type(COAP_STRING, new); in coap_op_observe_added() 563 coap_free_type(COAP_STRING, new); in coap_op_observe_added() 589 new = coap_malloc_type(COAP_STRING, in coap_op_observe_deleted() 627 coap_free_type(COAP_STRING, new); in coap_op_observe_deleted() 640 coap_free_type(COAP_STRING, new); in coap_op_observe_deleted() 705 new = coap_malloc_type(COAP_STRING, context->obs_cnt_save_file->length + 5); in coap_op_obs_cnt_track_observe() [all …]
|
D | coap_oscore.c | 153 keep_proxy_uri = coap_malloc_type(COAP_STRING, coap_opt_length(option)); in coap_rebuild_pdu_for_proxy() 188 kbuf = buf = coap_malloc_type(COAP_STRING, uri.path.length + 1); in coap_rebuild_pdu_for_proxy() 196 coap_free_type(COAP_STRING, buf); in coap_rebuild_pdu_for_proxy() 202 coap_free_type(COAP_STRING, kbuf); in coap_rebuild_pdu_for_proxy() 209 buf = coap_malloc_type(COAP_STRING, uri.query.length + 1); in coap_rebuild_pdu_for_proxy() 217 coap_free_type(COAP_STRING, buf); in coap_rebuild_pdu_for_proxy() 223 coap_free_type(COAP_STRING, buf); in coap_rebuild_pdu_for_proxy() 231 coap_free_type(COAP_STRING, keep_proxy_uri); in coap_rebuild_pdu_for_proxy() 235 coap_free_type(COAP_STRING, keep_proxy_uri); in coap_rebuild_pdu_for_proxy() 1830 coap_free_type(COAP_STRING, oscore_conf->recipient_id); in coap_delete_oscore_conf() [all …]
|
D | coap_address.c | 489 info = coap_malloc_type(COAP_STRING, sizeof(coap_addr_info_t)); in coap_resolve_address_info() 499 coap_free_type(COAP_STRING, info); in coap_resolve_address_info() 583 info = coap_malloc_type(COAP_STRING, sizeof(coap_addr_info_t)); in coap_resolve_address_info() 679 coap_free_type(COAP_STRING, info); in coap_resolve_address_info() 759 info = coap_malloc_type(COAP_STRING, sizeof(coap_addr_info_t)); in coap_resolve_address_info() 826 coap_free_type(COAP_STRING, info); in coap_free_address_info()
|
D | coap_async.c | 70 s = (coap_async_t *)coap_malloc_type(COAP_STRING, sizeof(coap_async_t)); in coap_register_async() 158 coap_free_type(COAP_STRING, s); in coap_free_async_sub()
|
D | coap_uri.c | 641 result = (unsigned char *)coap_malloc_type(COAP_STRING, length + 1 + sizeof(coap_uri_t)); in coap_new_uri() 650 coap_free_type(COAP_STRING, result); in coap_new_uri() 664 result = (coap_uri_t *)coap_malloc_type(COAP_STRING, uri->query.length + uri->host.length + in coap_clone_uri() 700 coap_free_type(COAP_STRING, uri); in coap_delete_uri()
|
D | coap_ws.c | 212 session->ws = coap_malloc_type(COAP_STRING, sizeof(coap_ws_state_t)); in coap_ws_write() 262 uint8_t *wdata = coap_malloc_type(COAP_STRING, datalen); in coap_ws_write() 272 coap_free_type(COAP_STRING, wdata); in coap_ws_write() 587 session->ws = coap_malloc_type(COAP_STRING, sizeof(coap_ws_state_t)); in coap_ws_read() 801 session->ws = coap_malloc_type(COAP_STRING, sizeof(coap_ws_state_t)); in coap_ws_establish()
|
D | coap_cache.c | 52 coap_free_type(COAP_STRING, ctx->cache_ignore_options); in coap_cache_ignore_options() 56 ctx->cache_ignore_options = coap_malloc_type(COAP_STRING, count * sizeof(options[0])); in coap_cache_ignore_options()
|
D | coap_tinydtls.c | 967 uint8_t *tbuf = coap_malloc_type(COAP_STRING, size); in pem_base64_decode() 1019 coap_free_type(COAP_STRING, tbuf); in pem_base64_decode() 1455 dtls_sha256_ctx *digest_ctx = coap_malloc_type(COAP_STRING, sizeof(dtls_sha256_ctx)); in coap_digest_setup() 1466 coap_free_type(COAP_STRING, digest_ctx); in coap_digest_free()
|
D | coap_block.c | 1902 tmp = coap_realloc_type(COAP_STRING, lg_crcv->obs_token, in track_fetch_observe() 2108 coap_free_type(COAP_STRING, lg_crcv->body_data); in coap_block_delete_lg_crcv() 2115 coap_free_type(COAP_STRING, lg_crcv->obs_token); in coap_block_delete_lg_crcv() 2134 coap_free_type(COAP_STRING, lg_srcv->body_data); in coap_block_delete_lg_srcv() 2263 out_blocks = coap_malloc_type(COAP_STRING, sizeof(send_track) * COAP_MAX_PAYLOADS(session)); in coap_handle_request_send_block() 2265 out_blocks = coap_malloc_type(COAP_STRING, sizeof(send_track)); in coap_handle_request_send_block() 2493 coap_free_type(COAP_STRING, out_blocks); in coap_handle_request_send_block() 2507 coap_free_type(COAP_STRING, out_blocks); in coap_handle_request_send_block() 3438 coap_free_type(COAP_STRING, p->body_data); in coap_handle_response_get_block() 3482 coap_free_type(COAP_STRING, p->body_data); in coap_handle_response_get_block() [all …]
|
D | coap_mem.c | 401 case COAP_STRING: in get_container()
|
D | coap_resource.c | 351 r->proxy_name_list = coap_malloc_type(COAP_STRING, host_name_count * 361 coap_free_type(COAP_STRING, r->proxy_name_list); 506 coap_free_type(COAP_STRING, resource->proxy_name_list);
|
D | coap_openssl.c | 837 context = (coap_openssl_context_t *)coap_malloc_type(COAP_STRING, sizeof(coap_openssl_context_t)); in coap_dtls_new_context() 2812 coap_free_type(COAP_STRING, context); in coap_dtls_free_context()
|
D | coap_session.c | 670 coap_free_type(COAP_STRING, session->ws); in coap_session_mfree()
|
D | coap_net.c | 609 coap_free_type(COAP_STRING, context->cache_ignore_options); in coap_free_context()
|
/third_party/libcoap/src/oscore/ |
D | oscore_crypto.c | 108 uint8_t *aggregate_buffer = coap_malloc_type(COAP_STRING, 32 + info_len + 1); in oscore_hkdf_expand() 110 coap_malloc_type(COAP_STRING, (N + 1) * 32); /* 32 extra bytes to fit the last block */ in oscore_hkdf_expand() 143 coap_free_type(COAP_STRING, out_buffer); in oscore_hkdf_expand() 144 coap_free_type(COAP_STRING, aggregate_buffer); in oscore_hkdf_expand() 148 coap_free_type(COAP_STRING, out_buffer); in oscore_hkdf_expand() 149 coap_free_type(COAP_STRING, aggregate_buffer); in oscore_hkdf_expand()
|
D | oscore.c | 65 uint8_t *result = coap_malloc_type(COAP_STRING, *len); in oscore_cs_params() 83 uint8_t *result = coap_malloc_type(COAP_STRING, *len); in oscore_cs_key_params()
|
D | oscore_cbor.c | 342 void *rs = coap_malloc_type(COAP_STRING, *len); in oscore_cbor_get_string_array() 424 *result = coap_malloc_type(COAP_STRING, size); in oscore_cbor_strip_value()
|
D | oscore_context.c | 681 coap_free_type(COAP_STRING, association); in oscore_free_association() 696 association = coap_malloc_type(COAP_STRING, sizeof(oscore_association_t)); in oscore_new_association()
|
/third_party/libcoap/include/coap3/ |
D | coap_mem.h | 38 COAP_STRING, enumerator 114 return coap_malloc_type(COAP_STRING, size); in coap_malloc() 122 coap_free_type(COAP_STRING, object); in coap_free()
|
/third_party/libcoap/examples/lwip/config/ |
D | lwippools.h | 154 LWIP_MEMPOOL(COAP_STRING, MEMP_NUM_COAPSTRING, sizeof(coap_string_t)+MEMP_LEN_COAPSTRING,
|