SMIME_write_PKCS7

Write a PKCS#7 object in S/MIME (PEM/CMS) form to a BIO.

Synopsis

Declared in <openssl/pkcs7.h>

int
SMIME_write_PKCS7(
    BIO* bio,
    PKCS7* p7,
    BIO* data,
    int flags);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
bioOutput BIO for the S/MIME message.
p7PKCS#7 structure to write.
dataOptional content BIO for streaming, or NULL when content is already in p7.
flagsSMIME_* writing flags (for example SMIME_DETACHED).