[#PKCS7_final]
= PKCS7&lowbar;final
:mrdocs:

Finalize a PKCS&num;7 structure by digesting content from a BIO and completing signatures or encryption&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
PKCS7&lowbar;final(
    xref:PKCS7.adoc[PKCS7]* p7,
    xref:BIO.adoc[BIO]* data,
    int flags);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *p7*
| Partially constructed PKCS&num;7 object (for example from PKCS7&lowbar;sign() with PKCS7&lowbar;PARTIAL)&period;
| *data*
| BIO supplying the content to process, or NULL when content is already embedded&period;
| *flags*
| PKCS7&lowbar;&ast; processing flags such as PKCS7&lowbar;STREAM or PKCS7&lowbar;DETACHED&period;
|===


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