CRYPTO_new_ex_data

Initialise ad for object obj of CRYPTO_EX_INDEX class class_index.

Synopsis

Declared in <openssl/crypto.h>

int
CRYPTO_new_ex_data(
    int class_index,
    void* obj,
    CRYPTO_EX_DATA* ad);

Return Value

1 on success, or 0 on error.

Parameters

NameDescription
class_indexCRYPTO_EX_INDEX_* identifying the owning object type.
objOwning object pointer passed to new-index callbacks.
adEx-data structure embedded in (or associated with) obj.