riot_sys

Function nanocoap_cache_key_blockreq_options_generate

Source
pub unsafe extern "C" fn nanocoap_cache_key_blockreq_options_generate(
    req: *const coap_pkt_t,
    cache_key: *mut c_void,
)
Expand description

@brief Generates a cache key based on only the options in @p req without any of the blockwise options included in the key

This function can be used to correlate individual requests that are part of a blockwise transfer with each other.

@param[in] req The request to generate the cache key from @param[out] cache_key The generated cache key of SHA256_DIGEST_LENGTH bytes