Create a CMS CompressedData ContentInfo from content read from a BIO.
Declared in <openssl/cms.h>
CMS_ContentInfo*
CMS_compress(
BIO* in,
int comp_nid,
unsigned int flags);
New CMS_ContentInfo on success, or NULL on error.
| Name | Description |
|---|---|
| in | Content to compress (ignored for reading when CMS_STREAM is set). |
| comp_nid | Compression algorithm NID, or NID_undef for the default (zlib). |
| flags | Optional CMS flags such as CMS_TEXT, CMS_BINARY, CMS_STREAM, or CMS_DETACHED. |