[#BIO_meth_new]
= BIO&lowbar;meth&lowbar;new
:mrdocs:

Allocate a new custom BIO&lowbar;METHOD with the given type index and name&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BIO_METHOD.adoc[BIO&lowbar;METHOD]*
BIO&lowbar;meth&lowbar;new(
    int type,
    char const* name);
----

== Return Value

New method table, or NULL on allocation failure&semi; free with BIO&lowbar;meth&lowbar;free()&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *type*
| BIO type index (often from BIO&lowbar;get&lowbar;new&lowbar;index(), combined with BIO&lowbar;TYPE&lowbar;&ast; flags)&period;
| *name*
| Human&hyphen;readable method name stored on the BIO&lowbar;METHOD&period;
|===


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