SMIME_read_CMS_ex

Parse an S/MIME message into a CMS_ContentInfo, with optional flags and reuse.

Synopsis

Declared in <openssl/cms.h>

CMS_ContentInfo*
SMIME_read_CMS_ex(
    BIO* bio,
    int flags,
    BIO** bcont,
    CMS_ContentInfo** ci);

Return Value

Parsed CMS_ContentInfo, or NULL on error.

Parameters

NameDescription
bioBIO from which the S/MIME message is read.
flagsParse flags such as CMS_BINARY and SMIME_ASCIICRLF; 0 matches SMIME_read_CMS().
bcontIf non-NULL, receives a memory BIO with cleartext signed content, or is set to NULL.
ciOptional existing CMS_ContentInfo to populate (for example from CMS_ContentInfo_new_ex), or NULL to allocate.