CRYPTO_set_ex_data

Store val at ex_data index idx, replacing any previous pointer.

Synopsis

Declared in <openssl/crypto.h>

int
CRYPTO_set_ex_data(
    CRYPTO_EX_DATA* ad,
    int idx,
    void* val);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
adEx-data bag to update.
idxIndex from CRYPTO_get_ex_new_index() (or a class helper).
valPointer to store (may be NULL to clear the slot).