ddwaf_known_addresses

Function ddwaf_known_addresses 

Source
pub unsafe extern "C" fn ddwaf_known_addresses(
    handle: ddwaf_handle,
    size: *mut u32,
) -> *const *const c_char
Expand description

ddwaf_known_addresses

Get an array of known (root) addresses used by rules, exclusion filters and processors. This array contains both required and optional addresses. A more accurate distinction between required and optional addresses is provided within the diagnostics.

The memory is owned by the WAF and should not be freed.

@param handle Handle to the WAF instance. @param size Output parameter in which the size will be returned. The value of size will be 0 if the return value is NULL. @return NULL if empty, otherwise a pointer to an array with size elements.

@note This function is not thread-safe @note The returned array should be considered invalid after calling ddwaf_destroy on the handle used to obtain it.