[#PKCS7_set_content]
= PKCS7&lowbar;set&lowbar;content
:mrdocs:

Set the inner content of a SignedData &sol; DigestedData PKCS&num;7 to `p7&lowbar;data&period;`

== Synopsis

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

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

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *p7*
| Outer PKCS&num;7 whose content type supports nested content&period;
| *p7&lowbar;data*
| Inner PKCS&num;7 content object&semi; ownership is transferred on success&period;
|===


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