1CMS_sign_receipt(3) OpenSSL CMS_sign_receipt(3)
2
3
4
6 CMS_sign_receipt - create a CMS signed receipt
7
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
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
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
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
35 ERR_get_error(3), CMS_verify_receipt(3), CMS_sign(3)
36
38 CMS_sign_receipt() was added to OpenSSL 0.9.8
39
40
41
421.0.2o 2018-03-27 CMS_sign_receipt(3)