[#PKCS7_dataInit]
= PKCS7&lowbar;dataInit
:mrdocs:

Create a BIO chain for writing content into a PKCS&num;7 structure (digest&sol;encrypt filters)&period;

== Synopsis

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

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

== Return Value

BIO to which application data should be written, or NULL on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *p7*
| PKCS&num;7 object being signed, enveloped, digested, or encrypted&period;
| *bio*
| Optional BIO supplying detached content, or NULL to embed content in `p7&period;`
|===


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