Install type-safe thunk adapters used by DEFINE_LHASH_OF wrappers on lh.
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);
lh on success (for chaining), or NULL on failure.
| Name | Description |
|---|---|
| lh | Hash table to configure (often freshly created by OPENSSL_LH_new()). |
| hw | Thunk that applies a typed hash function to a void* element. |
| cw | Thunk that applies a typed compare function to void* elements. |
| daw | Thunk that applies a typed doall callback to a void* element. |
| daaw | Thunk that applies a typed doall-arg callback to void* element/arg. |