libcoap
4.3.0
|
CoAP Cache Structures, Enums and Functions that are not exposed to applications. 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... | |
CoAP Cache Structures, Enums and Functions that are not exposed to applications.
typedef void coap_digest_ctx_t |
Definition at line 58 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. Definition at line 222 of file coap_notls.c.
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. |
Definition at line 205 of file coap_notls.c.
coap_digest_ctx_t* coap_digest_setup | ( | void | ) |
Initialize a coap_digest.
Internal function.
NULL
if failure. Definition at line 194 of file coap_notls.c.
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. Definition at line 210 of file coap_notls.c.
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 |
Definition at line 256 of file coap_cache.c.