Insert data into an LHASH, replacing any equal existing element.

Synopsis

Declared in <openssl/lhash.h>

void*
OPENSSL_LH_insert(
    OPENSSL_LHASH* lh,
    void* data);

Return Value

Previously stored equal element, or NULL if none / on error (check ERR).

Parameters

Name

Description

lh

Hash table.

data

Element to insert (ownership typically remains with the table).

Created with MrDocs