[#PEM_write_bio_PKCS7_stream]
= PEM&lowbar;write&lowbar;bio&lowbar;PKCS7&lowbar;stream
:mrdocs:

Write a PKCS&num;7 structure as PEM, streaming content from `in` when required&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
PEM&lowbar;write&lowbar;bio&lowbar;PKCS7&lowbar;stream(
    xref:BIO.adoc[BIO]* out,
    xref:PKCS7.adoc[PKCS7]* p7,
    xref:BIO.adoc[BIO]* in,
    int flags);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *out*
| BIO that receives the PEM&hyphen;encoded PKCS&num;7&period;
| *p7*
| PKCS&num;7 object to serialise&period;
| *in*
| Optional content BIO for streaming signed&sol;enveloped data, or NULL&period;
| *flags*
| SMIME&lowbar;&ast; &sol; PKCS7&lowbar;&ast; streaming and encoding flags&period;
|===


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