SSL_CTX_set_ex_data

Store application-specific data on an SSL_CTX at a previously allocated index.

Synopsis

Declared in <openssl/ssl.h>

int
SSL_CTX_set_ex_data(
    SSL_CTX* ssl,
    int idx,
    void* data);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
sslSSL context that owns the ex_data table.
idxIndex from SSL_CTX_get_ex_new_index() (or CRYPTO_get_ex_new_index).
dataPointer to store; ownership remains with the caller unless freef was configured.