[#DH_new_method]
= DH&lowbar;new&lowbar;method
:mrdocs:

Allocate a DH object that uses `engine` for DH operations (deprecated)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
xref:DH.adoc[DH]*
DH&lowbar;new&lowbar;method(xref:ENGINE.adoc[ENGINE]* engine);
----

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

New DH, or NULL on allocation failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *engine*
| ENGINE to use, or NULL for the default DH ENGINE &sol; method&period;
|===


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