[#BIO_set_ex_data]
= BIO&lowbar;set&lowbar;ex&lowbar;data
:mrdocs:

Store application&hyphen;specific data on a BIO at the given ex&lowbar;data index&period;

== Synopsis

Declared in `&lt;openssl&sol;bio&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
BIO&lowbar;set&lowbar;ex&lowbar;data(
    xref:BIO.adoc[BIO]* bio,
    int idx,
    void* data);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *bio*
| BIO that owns the ex&lowbar;data table&period;
| *idx*
| Index obtained from BIO&lowbar;get&lowbar;ex&lowbar;new&lowbar;index() (or 0 for app data)&period;
| *data*
| Pointer to store&semi; ownership and lifetime are caller&hyphen;defined&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
