CRYPTO_dup_ex_data

Duplicate CRYPTO_EX_DATA entries from from into to for a class.

Synopsis

Declared in <openssl/crypto.h>

int
CRYPTO_dup_ex_data(
    int class_index,
    CRYPTO_EX_DATA* to,
    CRYPTO_EX_DATA const* from);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
class_indexCRYPTO_EX_INDEX_* identifying the object class.
toDestination ex_data container (typically freshly initialized).
fromSource ex_data to copy.