Allocate a new LHASH table using hash function h and compare function c.
Declared in <openssl/lhash.h>
OPENSSL_LHASH*
OPENSSL_LH_new(
OPENSSL_LH_HASHFUNC h,
OPENSSL_LH_COMPFUNC c);
Newly allocated OPENSSL_LHASH, or NULL on failure.
| Name | Description |
|---|---|
| h | Hash callback for elements stored in the table. |
| c | Comparison callback returning 0 for equal elements. |