Parse an S/MIME message into a CMS_ContentInfo, with optional flags and reuse.
Declared in <openssl/cms.h>
CMS_ContentInfo*
SMIME_read_CMS_ex(
BIO* bio,
int flags,
BIO** bcont,
CMS_ContentInfo** ci);
Parsed CMS_ContentInfo, or NULL on error.
| Name | Description |
|---|---|
| bio | BIO from which the S/MIME message is read. |
| flags | Parse flags such as CMS_BINARY and SMIME_ASCIICRLF; 0 matches SMIME_read_CMS(). |
| bcont | If non-NULL, receives a memory BIO with cleartext signed content, or is set to NULL. |
| ci | Optional existing CMS_ContentInfo to populate (for example from CMS_ContentInfo_new_ex), or NULL to allocate. |