OPENSSL_LH_set_thunks

Install type-safe thunk adapters used by DEFINE_LHASH_OF wrappers on lh.

Synopsis

Declared in <openssl/lhash.h>

OPENSSL_LHASH*
OPENSSL_LH_set_thunks(
    OPENSSL_LHASH* lh,
    OPENSSL_LH_HASHFUNCTHUNK hw,
    OPENSSL_LH_COMPFUNCTHUNK cw,
    OPENSSL_LH_DOALL_FUNC_THUNK daw,
    OPENSSL_LH_DOALL_FUNCARG_THUNK daaw);

Return Value

lh on success (for chaining), or NULL on failure.

Parameters

NameDescription
lhHash table to configure (often freshly created by OPENSSL_LH_new()).
hwThunk that applies a typed hash function to a void* element.
cwThunk that applies a typed compare function to void* elements.
dawThunk that applies a typed doall callback to a void* element.
daawThunk that applies a typed doall-arg callback to void* element/arg.