[#BIO_new] = BIO_new :mrdocs: Allocate a new BIO using `type` and the default library context. == Synopsis Declared in `<openssl/bio.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BIO.adoc[BIO]* BIO_new(xref:BIO_METHOD.adoc[BIO_METHOD] const* type); ---- == Return Value New BIO, or NULL on failure; free with BIO_free() / BIO_free_all(). == Parameters [cols="1,4"] |=== | Name| Description | *type* | BIO_METHOD such as BIO_s_mem() or BIO_s_file(). |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#