[#OPENSSL_LH_set_thunks]
= OPENSSL&lowbar;LH&lowbar;set&lowbar;thunks
:mrdocs:

Install type&hyphen;safe thunk adapters used by DEFINE&lowbar;LHASH&lowbar;OF wrappers on `lh&period;`

== Synopsis

Declared in `&lt;openssl&sol;lhash&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:OPENSSL_LHASH.adoc[OPENSSL&lowbar;LHASH]*
OPENSSL&lowbar;LH&lowbar;set&lowbar;thunks(
    xref:OPENSSL_LHASH.adoc[OPENSSL&lowbar;LHASH]* lh,
    xref:OPENSSL_LH_HASHFUNCTHUNK.adoc[OPENSSL&lowbar;LH&lowbar;HASHFUNCTHUNK] hw,
    xref:OPENSSL_LH_COMPFUNCTHUNK.adoc[OPENSSL&lowbar;LH&lowbar;COMPFUNCTHUNK] cw,
    xref:OPENSSL_LH_DOALL_FUNC_THUNK.adoc[OPENSSL&lowbar;LH&lowbar;DOALL&lowbar;FUNC&lowbar;THUNK] daw,
    xref:OPENSSL_LH_DOALL_FUNCARG_THUNK.adoc[OPENSSL&lowbar;LH&lowbar;DOALL&lowbar;FUNCARG&lowbar;THUNK] daaw);
----

== Return Value

`lh` on success (for chaining), or NULL on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *lh*
| Hash table to configure (often freshly created by OPENSSL&lowbar;LH&lowbar;new())&period;
| *hw*
| Thunk that applies a typed hash function to a void&ast; element&period;
| *cw*
| Thunk that applies a typed compare function to void&ast; elements&period;
| *daw*
| Thunk that applies a typed doall callback to a void&ast; element&period;
| *daaw*
| Thunk that applies a typed doall&hyphen;arg callback to void&ast; element&sol;arg&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
