CMS_verify_receipt

Verify a CMS signed receipt against the original SignedData that requested it.

Synopsis

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);

Return Value

1 on successful verification, or 0 on failure.

Parameters

NameDescription
rcmsSigned receipt ContentInfo to verify.
ocmsOriginal SignedData ContentInfo that contained the receipt request.
certsCertificates in which to search for the receipt's signing certificate.
storeTrusted store used for certificate chain verification.
flagsOptional CMS verify flags (CMS_DETACHED, CMS_BINARY, CMS_TEXT, and CMS_STREAM are not supported).