[#PKCS7_content_new]
= PKCS7&lowbar;content&lowbar;new
:mrdocs:

Allocate nested content of type `nid` and attach it to a PKCS&num;7 structure&period;

== Synopsis

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

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

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *p7*
| PKCS&num;7 ContentInfo that receives the new nested content&period;
| *nid*
| NID of the content type to create (for example NID&lowbar;pkcs7&lowbar;data)&period;
|===


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