xref: /freebsd-src/crypto/openssl/doc/man3/CMS_final.pod (revision e71b70530d95c4f34d8bdbd78d1242df1ba4a945)
1*e71b7053SJung-uk Kim=pod
2*e71b7053SJung-uk Kim
3*e71b7053SJung-uk Kim=head1 NAME
4*e71b7053SJung-uk Kim
5*e71b7053SJung-uk KimCMS_final - finalise a CMS_ContentInfo structure
6*e71b7053SJung-uk Kim
7*e71b7053SJung-uk Kim=head1 SYNOPSIS
8*e71b7053SJung-uk Kim
9*e71b7053SJung-uk Kim #include <openssl/cms.h>
10*e71b7053SJung-uk Kim
11*e71b7053SJung-uk Kim int CMS_final(CMS_ContentInfo *cms, BIO *data, BIO *dcont, unsigned int flags);
12*e71b7053SJung-uk Kim
13*e71b7053SJung-uk Kim=head1 DESCRIPTION
14*e71b7053SJung-uk Kim
15*e71b7053SJung-uk KimCMS_final() finalises the structure B<cms>. It's purpose is to perform any
16*e71b7053SJung-uk Kimoperations necessary on B<cms> (digest computation for example) and set the
17*e71b7053SJung-uk Kimappropriate fields. The parameter B<data> contains the content to be
18*e71b7053SJung-uk Kimprocessed. The B<dcont> parameter contains a BIO to write content to after
19*e71b7053SJung-uk Kimprocessing: this is only used with detached data and will usually be set to
20*e71b7053SJung-uk KimNULL.
21*e71b7053SJung-uk Kim
22*e71b7053SJung-uk Kim=head1 NOTES
23*e71b7053SJung-uk Kim
24*e71b7053SJung-uk KimThis function will normally be called when the B<CMS_PARTIAL> flag is used. It
25*e71b7053SJung-uk Kimshould only be used when streaming is not performed because the streaming
26*e71b7053SJung-uk KimI/O functions perform finalisation operations internally.
27*e71b7053SJung-uk Kim
28*e71b7053SJung-uk Kim=head1 RETURN VALUES
29*e71b7053SJung-uk Kim
30*e71b7053SJung-uk KimCMS_final() returns 1 for success or 0 for failure.
31*e71b7053SJung-uk Kim
32*e71b7053SJung-uk Kim=head1 SEE ALSO
33*e71b7053SJung-uk Kim
34*e71b7053SJung-uk KimL<ERR_get_error(3)>, L<CMS_sign(3)>,
35*e71b7053SJung-uk KimL<CMS_encrypt(3)>
36*e71b7053SJung-uk Kim
37*e71b7053SJung-uk Kim=head1 COPYRIGHT
38*e71b7053SJung-uk Kim
39*e71b7053SJung-uk KimCopyright 2008-2016 The OpenSSL Project Authors. All Rights Reserved.
40*e71b7053SJung-uk Kim
41*e71b7053SJung-uk KimLicensed under the OpenSSL license (the "License").  You may not use
42*e71b7053SJung-uk Kimthis file except in compliance with the License.  You can obtain a copy
43*e71b7053SJung-uk Kimin the file LICENSE in the source distribution or at
44*e71b7053SJung-uk KimL<https://www.openssl.org/source/license.html>.
45*e71b7053SJung-uk Kim
46*e71b7053SJung-uk Kim=cut
47