SMIME_read_PKCS7_ex

Parse an S/MIME message into a PKCS#7 structure, optionally reusing p7.

Synopsis

Declared in <openssl/pkcs7.h>

PKCS7*
SMIME_read_PKCS7_ex(
    BIO* bio,
    BIO** bcont,
    PKCS7** p7);

Return Value

Parsed PKCS7, or NULL on error; free with PKCS7_free.

Parameters

NameDescription
bioBIO supplying the S/MIME message.
bcontOptional destination for a memory BIO holding cleartext signed content, or NULL.
p7Optional pre-allocated PKCS7 from PKCS7_new_ex(), or NULL to allocate a new one.