1CMS_SIGN_RECEIPT(3)                 OpenSSL                CMS_SIGN_RECEIPT(3)
2
3
4

NAME

6       CMS_sign_receipt - create a CMS signed receipt
7

SYNOPSIS

9        #include <openssl/cms.h>
10
11        CMS_ContentInfo *CMS_sign_receipt(CMS_SignerInfo *si, X509 *signcert,
12                                          EVP_PKEY *pkey, STACK_OF(X509) *certs,
13                                          unsigned int flags);
14

DESCRIPTION

16       CMS_sign_receipt() creates and returns a CMS signed receipt structure.
17       si is the CMS_SignerInfo structure containing the signed receipt
18       request.  signcert is the certificate to sign with, pkey is the
19       corresponding private key.  certs is an optional additional set of
20       certificates to include in the CMS structure (for example any
21       intermediate CAs in the chain).
22
23       flags is an optional set of flags.
24

NOTES

26       This functions behaves in a similar way to CMS_sign() except the flag
27       values CMS_DETACHED, CMS_BINARY, CMS_NOATTR, CMS_TEXT and CMS_STREAM
28       are not supported since they do not make sense in the context of signed
29       receipts.
30

RETURN VALUES

32       CMS_sign_receipt() returns either a valid CMS_ContentInfo structure or
33       NULL if an error occurred.  The error can be obtained from
34       ERR_get_error(3).
35

SEE ALSO

37       ERR_get_error(3), CMS_verify_receipt(3), CMS_sign(3)
38
40       Copyright 2008-2016 The OpenSSL Project Authors. All Rights Reserved.
41
42       Licensed under the OpenSSL license (the "License").  You may not use
43       this file except in compliance with the License.  You can obtain a copy
44       in the file LICENSE in the source distribution or at
45       <https://www.openssl.org/source/license.html>.
46
47
48
491.1.1                             2018-09-11               CMS_SIGN_RECEIPT(3)
Impressum