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

Name

Description

bp

BIO to read from.

sk

Existing stack to append to, or NULL to allocate a new stack.

cb

Password callback for encrypted private keys, or NULL.

u

Application data passed to cb.

libctx

Library context for provider‐backed key decoding, or NULL for the default.

propq

Property query for algorithm fetches, or NULL.

Created with MrDocs