SMIME_read_CMS

Parse an S/MIME message from a BIO into a CMS_ContentInfo.

Synopsis

Declared in <openssl/cms.h>

CMS_ContentInfo*
SMIME_read_CMS(
    BIO* bio,
    BIO** bcont);

Description

Equivalent to SMIME_read_CMS_ex() with flags 0 and a NULL reuse pointer.

Return Value

Parsed CMS_ContentInfo, or NULL on error.

Parameters

NameDescription
bioBIO from which the S/MIME message is read.
bcontIf non-NULL, receives a memory BIO with cleartext signed content, or is set to NULL.