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
47       Copyright 2008-2016 The OpenSSL Project Authors. All Rights Reserved.
48
49       Licensed under the OpenSSL license (the "License").  You may not use
50       this file except in compliance with the License.  You can obtain a copy
51       in the file LICENSE in the source distribution or at
52       <https://www.openssl.org/source/license.html>.
53
54
55
561.1.1i                            2021-01-26                 CMS_UNCOMPRESS(3)
Impressum