[#SMIME_read_CMS_ex]
= SMIME&lowbar;read&lowbar;CMS&lowbar;ex
:mrdocs:

Parse an S&sol;MIME message into a CMS&lowbar;ContentInfo, with optional flags and reuse&period;

== Synopsis

Declared in `&lt;openssl&sol;cms&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:CMS_ContentInfo.adoc[CMS&lowbar;ContentInfo]*
SMIME&lowbar;read&lowbar;CMS&lowbar;ex(
    xref:BIO.adoc[BIO]* bio,
    int flags,
    xref:BIO.adoc[BIO]** bcont,
    xref:CMS_ContentInfo.adoc[CMS&lowbar;ContentInfo]** ci);
----

== Return Value

Parsed CMS&lowbar;ContentInfo, or NULL on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *bio*
| BIO from which the S&sol;MIME message is read&period;
| *flags*
| Parse flags such as CMS&lowbar;BINARY and SMIME&lowbar;ASCIICRLF&semi; 0 matches SMIME&lowbar;read&lowbar;CMS()&period;
| *bcont*
| If non&hyphen;NULL, receives a memory BIO with cleartext signed content, or is set to NULL&period;
| *ci*
| Optional existing CMS&lowbar;ContentInfo to populate (for example from CMS&lowbar;ContentInfo&lowbar;new&lowbar;ex), or NULL to allocate&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
