[#BIO_new_ex]
= BIO&lowbar;new&lowbar;ex
:mrdocs:

Allocate a new BIO for `method` using the given 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&lowbar;ex(
    xref:OSSL_LIB_CTX.adoc[OSSL&lowbar;LIB&lowbar;CTX]* libctx,
    xref:BIO_METHOD.adoc[BIO&lowbar;METHOD] const* method);
----

== Return Value

New BIO, or NULL on allocation failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *libctx*
| Library context associated with the BIO, or NULL for the default&period;
| *method*
| BIO method that defines the BIO&apos;s behaviour&period;
|===


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