[#OBJ_NAME_new_index] = OBJ_NAME_new_index :mrdocs: Allocate a new OBJ_NAME type index with custom hash, compare, and free callbacks. == Synopsis Declared in `<openssl/objects.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- 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 [cols="1,4"] |=== | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#