[#BIO_new]
= BIO&lowbar;new
:mrdocs:

Allocate a new BIO using `type` and the default library context&period;

== Synopsis

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

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

== Return Value

New BIO, or NULL on failure&semi; free with BIO&lowbar;free() &sol; BIO&lowbar;free&lowbar;all()&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *type*
| BIO&lowbar;METHOD such as BIO&lowbar;s&lowbar;mem() or BIO&lowbar;s&lowbar;file()&period;
|===


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