[#DH_new]
= DH&lowbar;new
:mrdocs:

Allocate and initialize an empty DH object (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();
----

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

Prefer EVP&lowbar;PKEY&hyphen;based Diffie&hyphen;Hellman APIs for new code&period;

== Return Value

New DH, or NULL on allocation failure&period;


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