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

Name

Description

bio

BIO that owns the ex_data table.

idx

Index obtained from BIO_get_ex_new_index() (or 0 for app data).

data

Pointer to store; ownership and lifetime are caller‐defined.

Created with MrDocs