BIO_new_ex

Allocate a new BIO for method using the given library context.

Synopsis

Declared in <openssl/bio.h>

BIO*
BIO_new_ex(
    OSSL_LIB_CTX* libctx,
    BIO_METHOD const* method);

Return Value

New BIO, or NULL on allocation failure.

Parameters

NameDescription
libctxLibrary context associated with the BIO, or NULL for the default.
methodBIO method that defines the BIO's behaviour.