Sortix nightly manual
This manual documents Sortix nightly, a development build that has not been officially released. You can instead view this document in the latest official manual.
NAME
SMIME_write_CMS — convert CMS structure to S/MIME formatSYNOPSIS
#include <openssl/cms.h>SMIME_write_CMS(BIO *out, CMS_ContentInfo *cms, BIO *data, int flags);
DESCRIPTION
SMIME_write_CMS() adds the appropriate MIME headers to the cms structure to produce an S/MIME message and writes it to out. If streaming is enabled, the content must be supplied in the data argument.- CMS_DETACHED
-
Use cleartext signing. This option only makes sense if cms is of the type SignedData and CMS_DETACHED was also set when it was created with CMS_sign(3).
- CMS_TEXT
- Add MIME headers for type text/plain to the content. This only makes sense if CMS_DETACHED is also set.
- CMS_STREAM
-
Perform streaming. This flag should only be set if CMS_STREAM was also passed to the function that created cms.