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

Name

Description

out

BIO that receives the PEM‐encoded CMS.

cms

CMS structure to encode.

in

BIO supplying detached or streaming content when required by flags, or NULL.

flags

CMS_* flags controlling streaming and encoding behaviour.

Created with MrDocs