EVP_PKEY_set_ex_data

Store application-specific data on an EVP_PKEY at a CRYPTO ex_data index.

Synopsis

Declared in <openssl/evp.h>

int
EVP_PKEY_set_ex_data(
    EVP_PKEY* key,
    int idx,
    void* arg);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
keyKey that owns the ex_data table.
idxIndex obtained from EVP_PKEY_get_ex_new_index() (or a reserved index).
argPointer to store; ownership remains with the caller unless free callbacks manage it.