[#CMS_sign_receipt] = CMS_sign_receipt :mrdocs: Create a CMS signed receipt ContentInfo for a SignerInfo that requested a receipt. == Synopsis Declared in `<openssl/cms.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:CMS_ContentInfo.adoc[CMS_ContentInfo]* CMS_sign_receipt( xref:CMS_SignerInfo.adoc[CMS_SignerInfo]* si, xref:X509.adoc[X509]* signcert, xref:EVP_PKEY.adoc[EVP_PKEY]* pkey, xref:stack_st_X509.adoc[stack_st_X509]* certs, unsigned int flags); ---- == Return Value New signed‐receipt ContentInfo, or NULL on error. == Parameters [cols="1,4"] |=== | 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). |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#