[#CRYPTO_get_ex_data]
= CRYPTO&lowbar;get&lowbar;ex&lowbar;data
:mrdocs:

Retrieve the pointer stored at ex&lowbar;data index `idx&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void*
CRYPTO&lowbar;get&lowbar;ex&lowbar;data(
    xref:CRYPTO_EX_DATA.adoc[CRYPTO&lowbar;EX&lowbar;DATA] const* ad,
    int idx);
----

== Return Value

Stored pointer, or NULL if unset &sol; out of range&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ad*
| Ex&hyphen;data bag to query&period;
| *idx*
| Index from CRYPTO&lowbar;get&lowbar;ex&lowbar;new&lowbar;index() (or a class helper)&period;
|===


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