[#CRYPTO_new_ex_data]
= CRYPTO&lowbar;new&lowbar;ex&lowbar;data
:mrdocs:

Initialise `ad` for object `obj` of CRYPTO&lowbar;EX&lowbar;INDEX class `class&lowbar;index&period;`

== Synopsis

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

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

== Return Value

1 on success, or 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *class&lowbar;index*
| CRYPTO&lowbar;EX&lowbar;INDEX&lowbar;&ast; identifying the owning object type&period;
| *obj*
| Owning object pointer passed to new&hyphen;index callbacks&period;
| *ad*
| Ex&hyphen;data structure embedded in (or associated with) `obj&period;`
|===


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