BIO_new_from_core_bio

Wrap a provider OSSL_CORE_BIO in a library BIO_s_core() BIO.

Synopsis

Declared in <openssl/bio.h>

BIO*
BIO_new_from_core_bio(
    OSSL_LIB_CTX* libctx,
    OSSL_CORE_BIO* corebio);

Return Value

New core BIO, or NULL on error.

Parameters

NameDescription
libctxLibrary context for the new BIO, or NULL for the default.
corebioProvider core BIO to wrap (ownership rules follow the provider API).