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

Create a CMS Data contentInfo wrapping the octets 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&lowbar;ex(
    xref:BIO.adoc[BIO]* in,
    unsigned int flags,
    xref:OSSL_LIB_CTX.adoc[OSSL&lowbar;LIB&lowbar;CTX]* libctx,
    char const* propq);
----

== Return Value

New CMS&lowbar;ContentInfo, or NULL on error&semi; free with CMS&lowbar;ContentInfo&lowbar;free()&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *in*
| BIO supplying the content bytes to embed&period;
| *flags*
| CMS&lowbar;&ast; flags (for example CMS&lowbar;STREAM &sol; CMS&lowbar;PARTIAL)&period;
| *libctx*
| Library context for algorithm fetches, or NULL for the default&period;
| *propq*
| Property query for provider algorithms, or NULL&period;
|===


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