[#DH_new] = DH_new :mrdocs: Allocate and initialize an empty DH object (deprecated). == Synopsis Declared in `<openssl/dh.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated]] xref:DH.adoc[DH]* DH_new(); ---- [WARNING] ==== https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged. ==== == Description Prefer EVP_PKEY‐based Diffie‐Hellman APIs for new code. == Return Value New DH, or NULL on allocation failure. [.small]#Created with https://www.mrdocs.com[MrDocs]#