Home | History | Annotate | Line # | Download | only in man3
      1      1.1  christos =pod
      2      1.1  christos 
      3      1.1  christos =head1 NAME
      4      1.1  christos 
      5      1.1  christos CMS_uncompress - uncompress a CMS CompressedData structure
      6      1.1  christos 
      7      1.1  christos =head1 SYNOPSIS
      8      1.1  christos 
      9      1.1  christos  #include <openssl/cms.h>
     10      1.1  christos 
     11      1.1  christos  int CMS_uncompress(CMS_ContentInfo *cms, BIO *dcont, BIO *out, unsigned int flags);
     12      1.1  christos 
     13      1.1  christos =head1 DESCRIPTION
     14      1.1  christos 
     15      1.1  christos CMS_uncompress() extracts and uncompresses the content from a CMS
     16      1.1  christos CompressedData structure B<cms>. B<data> is a BIO to write the content to and
     17      1.1  christos B<flags> is an optional set of flags.
     18      1.1  christos 
     19      1.1  christos The B<dcont> parameter is used in the rare case where the compressed content
     20      1.1  christos is detached. It will normally be set to NULL.
     21      1.1  christos 
     22      1.1  christos =head1 NOTES
     23      1.1  christos 
     24      1.1  christos The only currently supported compression algorithm is zlib: if the structure
     25      1.1  christos indicates the use of any other algorithm an error is returned.
     26      1.1  christos 
     27      1.1  christos If zlib support is not compiled into OpenSSL then CMS_uncompress() will always
     28      1.1  christos return an error.
     29      1.1  christos 
     30      1.1  christos The following flags can be passed in the B<flags> parameter.
     31      1.1  christos 
     32      1.1  christos If the B<CMS_TEXT> flag is set MIME headers for type B<text/plain> are deleted
     33      1.1  christos from the content. If the content is not of type B<text/plain> then an error is
     34      1.1  christos returned.
     35      1.1  christos 
     36      1.1  christos =head1 RETURN VALUES
     37      1.1  christos 
     38      1.1  christos CMS_uncompress() returns either 1 for success or 0 for failure. The error can
     39      1.1  christos be obtained from ERR_get_error(3)
     40      1.1  christos 
     41      1.1  christos =head1 BUGS
     42      1.1  christos 
     43      1.1  christos The lack of single pass processing and the need to hold all data in memory as
     44      1.1  christos mentioned in CMS_verify() also applies to CMS_decompress().
     45      1.1  christos 
     46      1.1  christos =head1 SEE ALSO
     47      1.1  christos 
     48      1.1  christos L<ERR_get_error(3)>, L<CMS_compress(3)>
     49      1.1  christos 
     50      1.1  christos =head1 COPYRIGHT
     51      1.1  christos 
     52      1.1  christos Copyright 2008-2016 The OpenSSL Project Authors. All Rights Reserved.
     53      1.1  christos 
     54  1.1.1.2  christos Licensed under the Apache License 2.0 (the "License").  You may not use
     55      1.1  christos this file except in compliance with the License.  You can obtain a copy
     56      1.1  christos in the file LICENSE in the source distribution or at
     57      1.1  christos L<https://www.openssl.org/source/license.html>.
     58      1.1  christos 
     59      1.1  christos =cut
     60