CMS_verify

Verify CMS SignedData signatures and write the content to out when requested.

Synopsis

Declared in <openssl/cms.h>

int
CMS_verify(
    CMS_ContentInfo* cms,
    stack_st_X509* certs,
    X509_STORE* store,
    BIO* dcont,
    BIO* out,
    unsigned int flags);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
cmsSignedData ContentInfo to verify.
certsOptional untrusted certificates to aid signer location, or NULL.
storeTrusted certificate store used to build and validate signer chains, or NULL.
dcontDetached content BIO when the payload is not embedded; otherwise NULL.
outOptional BIO that receives the verified content, or NULL.
flagsCMS verify flags (for example CMS_NO_SIGNER_CERT_VERIFY).