[#CMS_verify_receipt]
= CMS&lowbar;verify&lowbar;receipt
:mrdocs:

Verify a CMS signed receipt against the original SignedData that requested it&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
CMS&lowbar;verify&lowbar;receipt(
    xref:CMS_ContentInfo.adoc[CMS&lowbar;ContentInfo]* rcms,
    xref:CMS_ContentInfo.adoc[CMS&lowbar;ContentInfo]* ocms,
    stack&lowbar;st&lowbar;X509* certs,
    xref:X509_STORE.adoc[X509&lowbar;STORE]* store,
    unsigned int flags);
----

== Return Value

1 on successful verification, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *rcms*
| Signed receipt ContentInfo to verify&period;
| *ocms*
| Original SignedData ContentInfo that contained the receipt request&period;
| *certs*
| Certificates in which to search for the receipt&apos;s signing certificate&period;
| *store*
| Trusted store used for certificate chain verification&period;
| *flags*
| Optional CMS verify flags (CMS&lowbar;DETACHED, CMS&lowbar;BINARY, CMS&lowbar;TEXT, and CMS&lowbar;STREAM are not supported)&period;
|===


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