Write a PKCS#7 object in S/MIME (PEM/CMS) form to a BIO.
Declared in <openssl/pkcs7.h>
int
SMIME_write_PKCS7(
BIO* bio,
PKCS7* p7,
BIO* data,
int flags);
1 on success, or 0 on failure.
| 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). |