PEM_write_bio_CMS_stream

Write a CMS ContentInfo as a PEM CMS message, optionally streaming content from in.

Synopsis

Declared in <openssl/cms.h>

int
PEM_write_bio_CMS_stream(
    BIO* out,
    CMS_ContentInfo* cms,
    BIO* in,
    int flags);

Return Value

1 on success, or 0 on error.

Parameters

NameDescription
outBIO that receives the PEM-encoded CMS.
cmsCMS structure to encode.
inBIO supplying detached or streaming content when required by flags, or NULL.
flagsCMS_* flags controlling streaming and encoding behaviour.