Home
last modified time | relevance | path

Searched refs:COAP_STRING (Results 1 – 21 of 21) sorted by relevance

/third_party/libcoap/src/
Dcoap_str.c31 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()
Dcoap_subscribe.c425 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 …]
Dcoap_oscore.c153 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 …]
Dcoap_address.c489 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()
Dcoap_async.c70 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()
Dcoap_uri.c641 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()
Dcoap_ws.c212 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()
Dcoap_cache.c52 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()
Dcoap_tinydtls.c967 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()
Dcoap_block.c1902 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 …]
Dcoap_mem.c401 case COAP_STRING: in get_container()
Dcoap_resource.c351 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);
Dcoap_openssl.c837 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()
Dcoap_session.c670 coap_free_type(COAP_STRING, session->ws); in coap_session_mfree()
Dcoap_net.c609 coap_free_type(COAP_STRING, context->cache_ignore_options); in coap_free_context()
/third_party/libcoap/src/oscore/
Doscore_crypto.c108 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()
Doscore.c65 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()
Doscore_cbor.c342 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()
Doscore_context.c681 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/
Dcoap_mem.h38 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/
Dlwippools.h154 LWIP_MEMPOOL(COAP_STRING, MEMP_NUM_COAPSTRING, sizeof(coap_string_t)+MEMP_LEN_COAPSTRING,