Verify a CMS signed receipt against the original SignedData that requested it.
Declared in <openssl/cms.h>
int
CMS_verify_receipt(
CMS_ContentInfo* rcms,
CMS_ContentInfo* ocms,
stack_st_X509* certs,
X509_STORE* store,
unsigned int flags);
1 on successful verification, or 0 on failure.
| Name | Description |
|---|---|
| rcms | Signed receipt ContentInfo to verify. |
| ocms | Original SignedData ContentInfo that contained the receipt request. |
| certs | Certificates in which to search for the receipt's signing certificate. |
| store | Trusted store used for certificate chain verification. |
| flags | Optional CMS verify flags (CMS_DETACHED, CMS_BINARY, CMS_TEXT, and CMS_STREAM are not supported). |