Allocate a new OBJ_NAME type index with custom hash, compare, and free callbacks.
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*));
New positive type index on success, or 0 on error.
| Name | Description |
|---|---|
| hash_func | Hash function for names of this type, or NULL for the default. |
| cmp_func | Comparison function for names of this type, or NULL for the default. |
| free_func | Optional freer invoked as free_func(name, type, data) when an entry is removed, or NULL. |