Create a CMS signed receipt ContentInfo for a SignerInfo that requested a receipt.
Declared in <openssl/cms.h>
CMS_ContentInfo*
CMS_sign_receipt(
CMS_SignerInfo* si,
X509* signcert,
EVP_PKEY* pkey,
stack_st_X509* certs,
unsigned int flags);
New signed-receipt ContentInfo, or NULL on error.
| Name | Description |
|---|---|
| si | SignerInfo from the original SignedData that contains the receipt request. |
| signcert | Certificate of the receipt signer. |
| pkey | Private key corresponding to signcert. |
| certs | Optional additional certificates to include (for example intermediate CAs), or NULL. |
| flags | Optional CMS flags (CMS_DETACHED, CMS_BINARY, CMS_NOATTR, CMS_TEXT, and CMS_STREAM are not supported). |