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_final - finalise a CMS_ContentInfo 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_final(CMS_ContentInfo *cms, BIO *data, BIO *dcont, unsigned int flags);
     12      1.1  christos 
     13      1.1  christos =head1 DESCRIPTION
     14      1.1  christos 
     15  1.1.1.2  christos CMS_final() finalises the structure B<cms>. Its purpose is to perform any
     16      1.1  christos operations necessary on B<cms> (digest computation for example) and set the
     17      1.1  christos appropriate fields. The parameter B<data> contains the content to be
     18      1.1  christos processed. The B<dcont> parameter contains a BIO to write content to after
     19      1.1  christos processing: this is only used with detached data and will usually be set to
     20      1.1  christos NULL.
     21      1.1  christos 
     22      1.1  christos =head1 NOTES
     23      1.1  christos 
     24      1.1  christos This function will normally be called when the B<CMS_PARTIAL> flag is used. It
     25      1.1  christos should only be used when streaming is not performed because the streaming
     26      1.1  christos I/O functions perform finalisation operations internally.
     27      1.1  christos 
     28      1.1  christos =head1 RETURN VALUES
     29      1.1  christos 
     30      1.1  christos CMS_final() returns 1 for success or 0 for failure.
     31      1.1  christos 
     32      1.1  christos =head1 SEE ALSO
     33      1.1  christos 
     34      1.1  christos L<ERR_get_error(3)>, L<CMS_sign(3)>,
     35      1.1  christos L<CMS_encrypt(3)>
     36      1.1  christos 
     37      1.1  christos =head1 COPYRIGHT
     38      1.1  christos 
     39  1.1.1.3  christos Copyright 2008-2016 The OpenSSL Project Authors. All Rights Reserved.
     40      1.1  christos 
     41  1.1.1.3  christos Licensed under the Apache License 2.0 (the "License").  You may not use
     42      1.1  christos this file except in compliance with the License.  You can obtain a copy
     43      1.1  christos in the file LICENSE in the source distribution or at
     44      1.1  christos L<https://www.openssl.org/source/license.html>.
     45      1.1  christos 
     46      1.1  christos =cut
     47