[#CRYPTO_get_ex_new_index] = CRYPTO_get_ex_new_index :mrdocs: Allocate a new application‐specific ex_data index for a CRYPTO_EX_INDEX_* class. == Synopsis Declared in `<openssl/crypto.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int CRYPTO_get_ex_new_index( int class_index, long argl, void* argp, xref:CRYPTO_EX_new.adoc[CRYPTO_EX_new]* new_func, xref:CRYPTO_EX_dup.adoc[CRYPTO_EX_dup]* dup_func, xref:CRYPTO_EX_free.adoc[CRYPTO_EX_free]* free_func); ---- == Return Value Non‐negative index on success, or ‐1 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *class_index* | CRYPTO_EX_INDEX_* identifying the object class. | *argl* | Opaque long passed to the new/dup/free callbacks. | *argp* | Opaque pointer passed to the new/dup/free callbacks. | *new_func* | Optional constructor callback, or NULL. | *dup_func* | Optional duplication callback, or NULL. | *free_func* | Optional destructor callback, or NULL. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#