PEM_X509_INFO_read_ex

Read certificates, CRLs, and keys from a PEM FILE with a library context.

Synopsis

Declared in <openssl/pem.h>

stack_st_X509_INFO*
PEM_X509_INFO_read_ex(
    FILE* fp,
    stack_st_X509_INFO* sk,
    pem_password_cb* cb,
    void* u,
    OSSL_LIB_CTX* libctx,
    char const* propq);

Return Value

Stack of X509_INFO on success, or NULL on failure.

Parameters

NameDescription
fpFILE positioned at PEM input.
skExisting stack to append to, or NULL to allocate a new one.
cbPassword callback for encrypted PEM private keys, or NULL.
uApplication data passed to cb.
libctxLibrary context for algorithm fetches, or NULL for the default.
propqProperty query for algorithm fetches, or NULL.