[#DH_set_ex_data]
= DH&lowbar;set&lowbar;ex&lowbar;data
:mrdocs:

Store application data on a DH object at a CRYPTO&lowbar;EX index (deprecated)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
int
DH&lowbar;set&lowbar;ex&lowbar;data(
    xref:DH.adoc[DH]* d,
    int idx,
    void* arg);
----

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged.
====
== Return Value

1 on success, or 0 on failure&period;

== Parameters

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


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