[#CMS_verify]
= CMS&lowbar;verify
:mrdocs:

Verify CMS SignedData signatures and write the content to `out` when requested&period;

== Synopsis

Declared in `&lt;openssl&sol;cms&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
CMS&lowbar;verify(
    xref:CMS_ContentInfo.adoc[CMS&lowbar;ContentInfo]* cms,
    stack&lowbar;st&lowbar;X509* certs,
    xref:X509_STORE.adoc[X509&lowbar;STORE]* store,
    xref:BIO.adoc[BIO]* dcont,
    xref:BIO.adoc[BIO]* out,
    unsigned int flags);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *cms*
| SignedData ContentInfo to verify&period;
| *certs*
| Optional untrusted certificates to aid signer location, or NULL&period;
| *store*
| Trusted certificate store used to build and validate signer chains, or NULL&period;
| *dcont*
| Detached content BIO when the payload is not embedded&semi; otherwise NULL&period;
| *out*
| Optional BIO that receives the verified content, or NULL&period;
| *flags*
| CMS verify flags (for example CMS&lowbar;NO&lowbar;SIGNER&lowbar;CERT&lowbar;VERIFY)&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
