[#SMIME_write_PKCS7] = SMIME_write_PKCS7 :mrdocs: Write a PKCS#7 object in S/MIME (PEM/CMS) form to a BIO. == Synopsis Declared in `<openssl/pkcs7.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int SMIME_write_PKCS7( xref:BIO.adoc[BIO]* bio, xref:PKCS7.adoc[PKCS7]* p7, xref:BIO.adoc[BIO]* data, int flags); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *bio* | Output BIO for the S/MIME message. | *p7* | PKCS#7 structure to write. | *data* | Optional content BIO for streaming, or NULL when content is already in `p7.` | *flags* | SMIME_* writing flags (for example SMIME_DETACHED). |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#