SMIME_write_PKCS7(3) | LibreSSL | SMIME_write_PKCS7(3) |
NAME
SMIME_write_PKCS7 - convert PKCS#7 structure to S/MIME format.SYNOPSIS
#include <openssl/pkcs7.h>
int SMIME_write_PKCS7(BIO *out, PKCS7 *p7, BIO *data, int flags);
DESCRIPTION
SMIME_write_PKCS7() adds the appropriate MIME headers to a PKCS#7 structure to produce an S/MIME message.NOTES
The following flags can be passed in the flags parameter.BUGS
SMIME_write_PKCS7() always base64 encodes PKCS#7 structures, there should be an option to disable this.RETURN VALUES
SMIME_write_PKCS7() returns 1 for success or 0 for failure.SEE ALSO
ERR_get_error(3), PKCS7_sign(3), PKCS7_verify(3), PKCS7_encrypt(3) PKCS7_decrypt(3)HISTORY
SMIME_write_PKCS7() was added to OpenSSL 0.9.52015-10-26 | LibreSSL |