CMS_compress

Create a CMS CompressedData ContentInfo from content read from a BIO.

Synopsis

Declared in <openssl/cms.h>

CMS_ContentInfo*
CMS_compress(
    BIO* in,
    int comp_nid,
    unsigned int flags);

Return Value

New CMS_ContentInfo on success, or NULL on error.

Parameters

NameDescription
inContent to compress (ignored for reading when CMS_STREAM is set).
comp_nidCompression algorithm NID, or NID_undef for the default (zlib).
flagsOptional CMS flags such as CMS_TEXT, CMS_BINARY, CMS_STREAM, or CMS_DETACHED.