Allocate a new application‐specific ex_data index for a CRYPTO_EX_INDEX_* class.

Synopsis

Declared in <openssl/crypto.h>

int
CRYPTO_get_ex_new_index(
    int class_index,
    long argl,
    void* argp,
    CRYPTO_EX_new* new_func,
    CRYPTO_EX_dup* dup_func,
    CRYPTO_EX_free* free_func);

Return Value

Non‐negative index on success, or ‐1 on failure.

Parameters

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.

Created with MrDocs