[#CMS_get1_certs]
= CMS&lowbar;get1&lowbar;certs
:mrdocs:

Return a new stack of all certificates carried in a CMS ContentInfo&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
stack&lowbar;st&lowbar;X509*
CMS&lowbar;get1&lowbar;certs(xref:CMS_ContentInfo.adoc[CMS&lowbar;ContentInfo]* cms);
----

== Return Value

New STACK&lowbar;OF(X509) the caller must free (certificates are up&hyphen;reffed), or NULL if none or on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *cms*
| ContentInfo of type signed data or (authenticated) enveloped data&period;
|===


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