[#BIO_new_CMS]
= BIO&lowbar;new&lowbar;CMS
:mrdocs:

Wrap a CMS ContentInfo in a filter BIO that writes indefinite&hyphen;length BER to `out&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BIO.adoc[BIO]*
BIO&lowbar;new&lowbar;CMS(
    xref:BIO.adoc[BIO]* out,
    xref:CMS_ContentInfo.adoc[CMS&lowbar;ContentInfo]* cms);
----

== Return Value

New filter BIO, or NULL on failure&semi; free with BIO&lowbar;free&lowbar;all()&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *out*
| Underlying BIO that receives the encoded CMS structure&period;
| *cms*
| CMS ContentInfo to encode through the filter&period;
|===


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