PEM_X509_INFO_read_bio_ex

Read successive PEM X509_INFO objects (cert, CRL, and/or key) from a BIO with an explicit library context.

Synopsis

Declared in <openssl/pem.h>

stack_st_X509_INFO*
PEM_X509_INFO_read_bio_ex(
    BIO* bp,
    stack_st_X509_INFO* sk,
    pem_password_cb* cb,
    void* u,
    OSSL_LIB_CTX* libctx,
    char const* propq);

Return Value

Stack of X509_INFO groups, or NULL on failure.

Parameters

NameDescription
bpBIO to read from.
skExisting stack to append to, or NULL to allocate a new stack.
cbPassword callback for encrypted private keys, or NULL.
uApplication data passed to cb.
libctxLibrary context for provider-backed key decoding, or NULL for the default.
propqProperty query for algorithm fetches, or NULL.