[#DH_meth_set_init]
= DH&lowbar;meth&lowbar;set&lowbar;init
:mrdocs:

Set the DH object&hyphen;initialization callback on a DH&lowbar;METHOD (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;set&lowbar;init(
    xref:DH_METHOD-0a.adoc[DH&lowbar;METHOD]* dhm,
    int(* init)(xref:DH.adoc[DH]*));
----

[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 table to update&period;
| *init*
| Callback invoked when a DH object using this method is initialized, or NULL to clear&period;
|===


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