Blame doc/man3/CMS_uncompress.pod

Packit c4476c
=pod
Packit c4476c
Packit c4476c
=head1 NAME
Packit c4476c
Packit c4476c
CMS_uncompress - uncompress a CMS CompressedData structure
Packit c4476c
Packit c4476c
=head1 SYNOPSIS
Packit c4476c
Packit c4476c
 #include <openssl/cms.h>
Packit c4476c
Packit c4476c
 int CMS_uncompress(CMS_ContentInfo *cms, BIO *dcont, BIO *out, unsigned int flags);
Packit c4476c
Packit c4476c
=head1 DESCRIPTION
Packit c4476c
Packit c4476c
CMS_uncompress() extracts and uncompresses the content from a CMS
Packit c4476c
CompressedData structure B<cms>. B<data> is a BIO to write the content to and
Packit c4476c
B<flags> is an optional set of flags.
Packit c4476c
Packit c4476c
The B<dcont> parameter is used in the rare case where the compressed content
Packit c4476c
is detached. It will normally be set to NULL.
Packit c4476c
Packit c4476c
=head1 NOTES
Packit c4476c
Packit c4476c
The only currently supported compression algorithm is zlib: if the structure
Packit c4476c
indicates the use of any other algorithm an error is returned.
Packit c4476c
Packit c4476c
If zlib support is not compiled into OpenSSL then CMS_uncompress() will always
Packit c4476c
return an error.
Packit c4476c
Packit c4476c
The following flags can be passed in the B<flags> parameter.
Packit c4476c
Packit c4476c
If the B<CMS_TEXT> flag is set MIME headers for type B<text/plain> are deleted
Packit c4476c
from the content. If the content is not of type B<text/plain> then an error is
Packit c4476c
returned.
Packit c4476c
Packit c4476c
=head1 RETURN VALUES
Packit c4476c
Packit c4476c
CMS_uncompress() returns either 1 for success or 0 for failure. The error can
Packit c4476c
be obtained from ERR_get_error(3)
Packit c4476c
Packit c4476c
=head1 BUGS
Packit c4476c
Packit c4476c
The lack of single pass processing and the need to hold all data in memory as
Packit c4476c
mentioned in CMS_verify() also applies to CMS_decompress().
Packit c4476c
Packit c4476c
=head1 SEE ALSO
Packit c4476c
Packit c4476c
L<ERR_get_error(3)>, L<CMS_compress(3)>
Packit c4476c
Packit c4476c
=head1 COPYRIGHT
Packit c4476c
Packit c4476c
Copyright 2008-2016 The OpenSSL Project Authors. All Rights Reserved.
Packit c4476c
Packit c4476c
Licensed under the OpenSSL license (the "License").  You may not use
Packit c4476c
this file except in compliance with the License.  You can obtain a copy
Packit c4476c
in the file LICENSE in the source distribution or at
Packit c4476c
L<https://www.openssl.org/source/license.html>.
Packit c4476c
Packit c4476c
=cut