[#SMIME_write_CMS] = SMIME_write_CMS :mrdocs: Write a CMS_ContentInfo as an S/MIME (MIME) message to `bio.` == Synopsis Declared in `<openssl/cms.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int SMIME_write_CMS( xref:BIO.adoc[BIO]* bio, xref:CMS_ContentInfo.adoc[CMS_ContentInfo]* cms, 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 receiving the MIME‐formatted CMS. | *cms* | CMS object to serialise (typically signed or enveloped data). | *data* | Optional content BIO for detached/streaming content, or NULL. | *flags* | CMS_* / SMIME_* flags controlling MIME headers and streaming. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#