[#DH_meth_set0_app_data]
= DH&lowbar;meth&lowbar;set0&lowbar;app&lowbar;data
:mrdocs:

Attach opaque application data to a DH&lowbar;METHOD, transferring ownership of the pointer (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;meth&lowbar;set0&lowbar;app&lowbar;data(
    xref:DH_METHOD-0a.adoc[DH&lowbar;METHOD]* dhm,
    void* app&lowbar;data);
----

[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
| *dhm*
| Method object to update&period;
| *app&lowbar;data*
| Caller&hyphen;owned pointer stored on the method (may be NULL)&period;
|===


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