[#SSL_CTX_set_ex_data]
= SSL&lowbar;CTX&lowbar;set&lowbar;ex&lowbar;data
:mrdocs:

Store application&hyphen;specific data on an SSL&lowbar;CTX at a previously allocated index&period;

== Synopsis

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

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

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ssl*
| SSL context that owns the ex&lowbar;data table&period;
| *idx*
| Index from SSL&lowbar;CTX&lowbar;get&lowbar;ex&lowbar;new&lowbar;index() (or CRYPTO&lowbar;get&lowbar;ex&lowbar;new&lowbar;index)&period;
| *data*
| Pointer to store&semi; ownership remains with the caller unless freef was configured&period;
|===


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