[#SSL_SESSION_set_ex_data]
= SSL&lowbar;SESSION&lowbar;set&lowbar;ex&lowbar;data
:mrdocs:

Store application data on an SSL&lowbar;SESSION at a CRYPTO&lowbar;EX index&period;

== Synopsis

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

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

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ss*
| Session object to update&period;
| *idx*
| Index from SSL&lowbar;SESSION&lowbar;get&lowbar;ex&lowbar;new&lowbar;index()&period;
| *data*
| Application pointer to store (may be NULL)&period;
|===


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