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

Name

Description

fp

FILE to read from.

x

Optional address of a PKCS7 pointer to reuse, or NULL.

cb

Password callback for encrypted PEM, or NULL.

u

Application data passed to cb.

Created with MrDocs