1CMS_uncompress(3)                   OpenSSL                  CMS_uncompress(3)
2
3
4

NAME

6        CMS_uncompress - uncompress a CMS CompressedData structure
7

SYNOPSIS

9        #include <openssl/cms.h>
10
11        int CMS_uncompress(CMS_ContentInfo *cms, BIO *dcont, BIO *out, unsigned int flags);
12

DESCRIPTION

14       CMS_uncompress() extracts and uncompresses the content from a CMS
15       CompressedData structure cms. data is a BIO to write the content to and
16       flags is an optional set of flags.
17
18       The dcont parameter is used in the rare case where the compressed
19       content is detached. It will normally be set to NULL.
20

NOTES

22       The only currently supported compression algorithm is zlib: if the
23       structure indicates the use of any other algorithm an error is
24       returned.
25
26       If zlib support is not compiled into OpenSSL then CMS_uncompress() will
27       always return an error.
28
29       The following flags can be passed in the flags parameter.
30
31       If the CMS_TEXT flag is set MIME headers for type text/plain are
32       deleted from the content. If the content is not of type text/plain then
33       an error is returned.
34

RETURN VALUES

36       CMS_uncompress() returns either 1 for success or 0 for failure. The
37       error can be obtained from ERR_get_error(3)
38

BUGS

40       The lack of single pass processing and the need to hold all data in
41       memory as mentioned in CMS_verify() also applies to CMS_decompress().
42

SEE ALSO

44       ERR_get_error(3), CMS_compress(3)
45

HISTORY

47       CMS_uncompress() was added to OpenSSL 0.9.8
48
49
50
511.0.2k                            2017-01-26                 CMS_uncompress(3)
Impressum