[#CMS_data_create]
= CMS&lowbar;data&lowbar;create
:mrdocs:

Create a CMS Data ContentInfo from bytes read from `in&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:CMS_ContentInfo.adoc[CMS&lowbar;ContentInfo]*
CMS&lowbar;data&lowbar;create(
    xref:BIO.adoc[BIO]* in,
    unsigned int flags);
----

== Description

Equivalent to CMS&lowbar;data&lowbar;create&lowbar;ex() with a NULL library context and property query&period;

== Return Value

New CMS&lowbar;ContentInfo of type NID&lowbar;pkcs7&lowbar;data, or NULL on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *in*
| BIO supplying the content octets&period;
| *flags*
| CMS flags&semi; CMS&lowbar;STREAM defers CMS&lowbar;final() for streaming&period;
|===


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