CMS_digest_verify

Verify a CMS DigestedData ContentInfo and optionally write the content.

Synopsis

Declared in <openssl/cms.h>

int
CMS_digest_verify(
    CMS_ContentInfo* cms,
    BIO* dcont,
    BIO* out,
    unsigned int flags);

Return Value

1 on successful verification, or 0 on failure.

Parameters

NameDescription
cmsContentInfo of type NID_pkcs7_digest to verify.
dcontDetached content BIO when the digest is detached; normally NULL.
outOptional BIO that receives the content after successful verification, or NULL.
flagsOptional CMS verify flags (for example CMS_TEXT).