libcoap 4.3.1
|
Internal API for Cache-Key and Cache-Entry support. More...
Data Structures | |
struct | coap_digest_t |
struct | coap_cache_key_t |
struct | coap_cache_entry_t |
Typedefs | |
typedef struct coap_digest_t | coap_digest_t |
typedef void | coap_digest_ctx_t |
Functions | |
void | coap_expire_cache_entries (coap_context_t *context) |
Expire coap_cache_entry_t entries. More... | |
coap_digest_ctx_t * | coap_digest_setup (void) |
Initialize a coap_digest. More... | |
void | coap_digest_free (coap_digest_ctx_t *digest_ctx) |
Free off coap_digest_ctx_t. More... | |
int | coap_digest_update (coap_digest_ctx_t *digest_ctx, const uint8_t *data, size_t data_len) |
Update the coap_digest information with the next chunk of data. More... | |
int | coap_digest_final (coap_digest_ctx_t *digest_ctx, coap_digest_t *digest_buffer) |
Finalize the coap_digest information into the provided digest_buffer . More... | |
Internal API for Cache-Key and Cache-Entry support.
typedef void coap_digest_ctx_t |
Definition at line 60 of file coap_cache_internal.h.
typedef struct coap_digest_t coap_digest_t |
int coap_digest_final | ( | coap_digest_ctx_t * | digest_ctx, |
coap_digest_t * | digest_buffer | ||
) |
Finalize the coap_digest information into the provided digest_buffer
.
Internal function.
digest_ctx | The coap_digest context. |
digest_buffer | Pointer to digest buffer to update |
1
success, 0
failure. void coap_digest_free | ( | coap_digest_ctx_t * | digest_ctx | ) |
Free off coap_digest_ctx_t.
Always done by coap_digest_final()
Internal function.
digest_ctx | The coap_digest context. |
coap_digest_ctx_t * coap_digest_setup | ( | void | ) |
Initialize a coap_digest.
Internal function.
NULL
if failure. int coap_digest_update | ( | coap_digest_ctx_t * | digest_ctx, |
const uint8_t * | data, | ||
size_t | data_len | ||
) |
Update the coap_digest information with the next chunk of data.
Internal function.
digest_ctx | The coap_digest context. |
data | Pointer to data. |
data_len | Number of bytes. |
1
success, 0
failure. void coap_expire_cache_entries | ( | coap_context_t * | context | ) |
Expire coap_cache_entry_t entries.
Internal function.
context | The context holding the coap-entries to exire |