Lines Matching refs:cache_key
77 coap_cache_key_t *cache_key; in coap_cache_derive_key_w_ignore() local
121 cache_key = coap_malloc_type(COAP_CACHE_KEY, sizeof(coap_cache_key_t)); in coap_cache_derive_key_w_ignore()
122 if (cache_key) { in coap_cache_derive_key_w_ignore()
123 memcpy(cache_key->key, digest.key, sizeof(cache_key->key)); in coap_cache_derive_key_w_ignore()
125 return cache_key; in coap_cache_derive_key_w_ignore()
138 coap_delete_cache_key(coap_cache_key_t *cache_key) { in coap_delete_cache_key() argument
139 coap_free_type(COAP_CACHE_KEY, cache_key); in coap_delete_cache_key()
170 entry->cache_key = coap_cache_derive_key(session, pdu, session_based); in coap_new_cache_entry()
171 if (!entry->cache_key) { in coap_new_cache_entry()
181 HASH_ADD(hh, session->context->cache, cache_key[0], sizeof(coap_cache_key_t), entry); in coap_new_cache_entry()
186 coap_cache_get_by_key(coap_context_t *ctx, const coap_cache_key_t *cache_key) { in coap_cache_get_by_key() argument
189 assert(cache_key); in coap_cache_get_by_key()
190 if (cache_key) { in coap_cache_get_by_key()
191 HASH_FIND(hh, ctx->cache, cache_key, sizeof(coap_cache_key_t), cache_entry); in coap_cache_get_by_key()
204 coap_cache_key_t *cache_key = coap_cache_derive_key(session, request, session_based); in coap_cache_get_by_pdu() local
207 if (!cache_key) in coap_cache_get_by_pdu()
210 cache_entry = coap_cache_get_by_key(session->context, cache_key); in coap_cache_get_by_pdu()
211 coap_delete_cache_key(cache_key); in coap_cache_get_by_pdu()
230 coap_delete_cache_key(cache_entry->cache_key); in coap_delete_cache_entry()