[#CRYPTO_EX_dup]
= CRYPTO&lowbar;EX&lowbar;dup
:mrdocs:

Callback that duplicates one ex&lowbar;data slot when an object is copied&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
typedef int CRYPTO&lowbar;EX&lowbar;dup(xref:CRYPTO_EX_DATA.adoc[CRYPTO&lowbar;EX&lowbar;DATA]*, xref:CRYPTO_EX_DATA.adoc[CRYPTO&lowbar;EX&lowbar;DATA] const*, void**, int, long, void*);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *to*
| Destination ex&hyphen;data bag&period;
| *from*
| Source ex&hyphen;data bag&period;
| *from&lowbar;d*
| Address of the source slot pointer&semi; may be updated to the duplicated value&period;
| *idx*
| Ex&hyphen;data index being duplicated&period;
| *argl*
| Long argument registered with CRYPTO&lowbar;get&lowbar;ex&lowbar;new&lowbar;index()&period;
| *argp*
| Pointer argument registered with CRYPTO&lowbar;get&lowbar;ex&lowbar;new&lowbar;index()&period;
|===


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