SMIME_read_PKCS7

Parse an S/MIME message into a PKCS#7 structure using the default library context.

Synopsis

Declared in <openssl/pkcs7.h>

PKCS7*
SMIME_read_PKCS7(
    BIO* bio,
    BIO** bcont);

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.