[#CMS_sign_receipt]
= CMS&lowbar;sign&lowbar;receipt
:mrdocs:

Create a CMS signed receipt ContentInfo for a SignerInfo that requested a receipt&period;

== Synopsis

Declared in `&lt;openssl&sol;cms&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:CMS_ContentInfo.adoc[CMS&lowbar;ContentInfo]*
CMS&lowbar;sign&lowbar;receipt(
    xref:CMS_SignerInfo.adoc[CMS&lowbar;SignerInfo]* si,
    xref:X509.adoc[X509]* signcert,
    xref:EVP_PKEY.adoc[EVP&lowbar;PKEY]* pkey,
    stack&lowbar;st&lowbar;X509* certs,
    unsigned int flags);
----

== Return Value

New signed&hyphen;receipt ContentInfo, or NULL on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *si*
| SignerInfo from the original SignedData that contains the receipt request&period;
| *signcert*
| Certificate of the receipt signer&period;
| *pkey*
| Private key corresponding to `signcert&period;`
| *certs*
| Optional additional certificates to include (for example intermediate CAs), or NULL&period;
| *flags*
| Optional CMS flags (CMS&lowbar;DETACHED, CMS&lowbar;BINARY, CMS&lowbar;NOATTR, CMS&lowbar;TEXT, and CMS&lowbar;STREAM are not supported)&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
