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

Name

Description

cms

SignedData ContentInfo to verify.

certs

Optional untrusted certificates to aid signer location, or NULL.

store

Trusted certificate store used to build and validate signer chains, or NULL.

dcont

Detached content BIO when the payload is not embedded; otherwise NULL.

out

Optional BIO that receives the verified content, or NULL.

flags

CMS verify flags (for example CMS_NO_SIGNER_CERT_VERIFY).

Created with MrDocs