OPENSSL_LH_new

Allocate a new LHASH table using hash function h and compare function c.

Synopsis

Declared in <openssl/lhash.h>

OPENSSL_LHASH*
OPENSSL_LH_new(
    OPENSSL_LH_HASHFUNC h,
    OPENSSL_LH_COMPFUNC c);

Return Value

Newly allocated OPENSSL_LHASH, or NULL on failure.

Parameters

NameDescription
hHash callback for elements stored in the table.
cComparison callback returning 0 for equal elements.