SMIME_write_CMS

Write a CMS_ContentInfo as an S/MIME (MIME) message to bio.

Synopsis

Declared in <openssl/cms.h>

int
SMIME_write_CMS(
    BIO* bio,
    CMS_ContentInfo* cms,
    BIO* data,
    int flags);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
bioOutput BIO receiving the MIME-formatted CMS.
cmsCMS object to serialise (typically signed or enveloped data).
dataOptional content BIO for detached/streaming content, or NULL.
flagsCMS_* / SMIME_* flags controlling MIME headers and streaming.