PEM_read_PKCS7

Read a PKCS#7 structure from a PEM-encoded FILE stream.

Synopsis

Declared in <openssl/pem.h>

PKCS7*
PEM_read_PKCS7(
    FILE* fp,
    PKCS7** x,
    pem_password_cb* cb,
    void* u);

Return Value

PKCS#7 object on success, or NULL on failure.

Parameters

NameDescription
fpFILE to read from.
xOptional address of a PKCS7 pointer to reuse, or NULL.
cbPassword callback for encrypted PEM, or NULL.
uApplication data passed to cb.