BIO_new

Allocate a new BIO using type and the default library context.

Synopsis

Declared in <openssl/bio.h>

BIO*
BIO_new(BIO_METHOD const* type);

Return Value

New BIO, or NULL on failure; free with BIO_free() / BIO_free_all().

Parameters

NameDescription
typeBIO_METHOD such as BIO_s_mem() or BIO_s_file().