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