[#SMIME_read_PKCS7_ex]
= SMIME&lowbar;read&lowbar;PKCS7&lowbar;ex
:mrdocs:

Parse an S&sol;MIME message into a PKCS&num;7 structure, optionally reusing `p7&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:PKCS7.adoc[PKCS7]*
SMIME&lowbar;read&lowbar;PKCS7&lowbar;ex(
    xref:BIO.adoc[BIO]* bio,
    xref:BIO.adoc[BIO]** bcont,
    xref:PKCS7.adoc[PKCS7]** p7);
----

== Return Value

Parsed PKCS7, or NULL on error&semi; free with PKCS7&lowbar;free&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *bio*
| BIO supplying the S&sol;MIME message&period;
| *bcont*
| Optional destination for a memory BIO holding cleartext signed content, or NULL&period;
| *p7*
| Optional pre&hyphen;allocated PKCS7 from PKCS7&lowbar;new&lowbar;ex(), or NULL to allocate a new one&period;
|===


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