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

Name

Description

ad

Ex‐data bag to update.

idx

Index from CRYPTO_get_ex_new_index() (or a class helper).

val

Pointer to store (may be NULL to clear the slot).

Created with MrDocs