BIO_set_ex_data

Store application-specific data on a BIO at the given ex_data index.

Synopsis

Declared in <openssl/bio.h>

int
BIO_set_ex_data(
    BIO* bio,
    int idx,
    void* data);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
bioBIO that owns the ex_data table.
idxIndex obtained from BIO_get_ex_new_index() (or 0 for app data).
dataPointer to store; ownership and lifetime are caller-defined.