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

Name

Description

fp

FILE positioned at PEM input.

sk

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

cb

Password callback for encrypted PEM private keys, or NULL.

u

Application data passed to cb.

libctx

Library context for algorithm fetches, or NULL for the default.

propq

Property query for algorithm fetches, or NULL.

Created with MrDocs