[#DH_meth_new]
= DH&lowbar;meth&lowbar;new
:mrdocs:

Allocate a custom DH&lowbar;METHOD with a duplicated name (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_METHOD-0a.adoc[DH&lowbar;METHOD]*
DH&lowbar;meth&lowbar;new(
    char const* name,
    int flags);
----

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

New DH&lowbar;METHOD, or NULL on failure&semi; free with DH&lowbar;meth&lowbar;free()&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *name*
| Display name copied into the method object&period;
| *flags*
| Initial DH&lowbar;METHOD flag bits&period;
|===


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