[#PKCS7_verify]
= PKCS7&lowbar;verify
:mrdocs:

Verify a PKCS&num;7 signedData structure and optionally write the content&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
PKCS7&lowbar;verify(
    xref:PKCS7.adoc[PKCS7]* p7,
    xref:stack_st_X509.adoc[stack&lowbar;st&lowbar;X509]* certs,
    xref:X509_STORE.adoc[X509&lowbar;STORE]* store,
    xref:BIO.adoc[BIO]* indata,
    xref:BIO.adoc[BIO]* out,
    int flags);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *p7*
| Signed PKCS&num;7 object to verify&period;
| *certs*
| Optional untrusted certificates that may complete signer chains&period;
| *store*
| Trusted certificate store used for chain verification&period;
| *indata*
| BIO supplying detached content when the signature does not embed it&period;
| *out*
| Optional BIO that receives the verified content&period;
| *flags*
| PKCS7&lowbar;&ast; verification flags (for example PKCS7&lowbar;NOVERIFY, PKCS7&lowbar;DETACHED)&period;
|===


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