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, EVP_PKEY *pkey, STACK_OF(X509) *certs, unsigned int flags);
12

DESCRIPTION

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

NOTES

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

RETURN VALUES

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

SEE ALSO

35       ERR_get_error(3), CMS_verify_receipt(3), CMS_sign(3)
36

HISTORY

38       CMS_sign_receipt() was added to OpenSSL 0.9.8
39
40
41
421.0.0e                            2008-04-10               CMS_sign_receipt(3)
Impressum