[#CMS_EnvelopedData_create_ex]
= CMS&lowbar;EnvelopedData&lowbar;create&lowbar;ex
:mrdocs:

Create an empty CMS EnvelopedData ContentInfo using a library context&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;EnvelopedData&lowbar;create&lowbar;ex(
    xref:EVP_CIPHER-07.adoc[EVP&lowbar;CIPHER] const* cipher,
    xref:OSSL_LIB_CTX.adoc[OSSL&lowbar;LIB&lowbar;CTX]* libctx,
    char const* propq);
----

== Return Value

New EnvelopedData ContentInfo, or NULL on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *cipher*
| Content&hyphen;encryption cipher whose ASN&period;1 parameters will be encoded&period;
| *libctx*
| Library context for algorithm fetches, or NULL for the default&period;
| *propq*
| Property query for provider selection, or NULL&period;
|===


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