OBJ_NAME_new_index

Allocate a new OBJ_NAME type index with custom hash, compare, and free callbacks.

Synopsis

Declared in <openssl/objects.h>

int
OBJ_NAME_new_index(
    unsigned long(* hash_func)(char const*),
    int(* cmp_func)(char const*, char const*),
    void(* free_func)(char const*, int, char const*));

Return Value

New positive type index on success, or 0 on error.

Parameters

NameDescription
hash_funcHash function for names of this type, or NULL for the default.
cmp_funcComparison function for names of this type, or NULL for the default.
free_funcOptional freer invoked as free_func(name, type, data) when an entry is removed, or NULL.