1 1.1 christos =pod 2 1.1 christos 3 1.1 christos =head1 NAME 4 1.1 christos 5 1.1 christos CMS_sign_receipt - create a CMS signed receipt 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 CMS_ContentInfo *CMS_sign_receipt(CMS_SignerInfo *si, X509 *signcert, 12 1.1 christos EVP_PKEY *pkey, STACK_OF(X509) *certs, 13 1.1 christos unsigned int flags); 14 1.1 christos 15 1.1 christos =head1 DESCRIPTION 16 1.1 christos 17 1.1 christos CMS_sign_receipt() creates and returns a CMS signed receipt structure. B<si> is 18 1.1 christos the B<CMS_SignerInfo> structure containing the signed receipt request. 19 1.1 christos B<signcert> is the certificate to sign with, B<pkey> is the corresponding 20 1.1 christos private key. B<certs> is an optional additional set of certificates to include 21 1.1 christos in the CMS structure (for example any intermediate CAs in the chain). 22 1.1 christos 23 1.1 christos B<flags> is an optional set of flags. 24 1.1 christos 25 1.1 christos =head1 NOTES 26 1.1 christos 27 1.1 christos This functions behaves in a similar way to CMS_sign() except the flag values 28 1.1 christos B<CMS_DETACHED>, B<CMS_BINARY>, B<CMS_NOATTR>, B<CMS_TEXT> and B<CMS_STREAM> 29 1.1 christos are not supported since they do not make sense in the context of signed 30 1.1 christos receipts. 31 1.1 christos 32 1.1 christos =head1 RETURN VALUES 33 1.1 christos 34 1.1 christos CMS_sign_receipt() returns either a valid CMS_ContentInfo structure or NULL if 35 1.1 christos an error occurred. The error can be obtained from ERR_get_error(3). 36 1.1 christos 37 1.1 christos =head1 SEE ALSO 38 1.1 christos 39 1.1 christos L<ERR_get_error(3)>, 40 1.1 christos L<CMS_verify_receipt(3)>, 41 1.1 christos L<CMS_sign(3)> 42 1.1 christos 43 1.1 christos =head1 COPYRIGHT 44 1.1 christos 45 1.1 christos Copyright 2008-2016 The OpenSSL Project Authors. All Rights Reserved. 46 1.1 christos 47 1.1.1.2 christos Licensed under the Apache License 2.0 (the "License"). You may not use 48 1.1 christos this file except in compliance with the License. You can obtain a copy 49 1.1 christos in the file LICENSE in the source distribution or at 50 1.1 christos L<https://www.openssl.org/source/license.html>. 51 1.1 christos 52 1.1 christos =cut 53