[#CMS_add1_cert]
= CMS&lowbar;add1&lowbar;cert
:mrdocs:

Add a certificate to a CMS ContentInfo, taking a reference on `cert&period;`

== Synopsis

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

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

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *cms*
| ContentInfo of type signed data or (authenticated) enveloped data&period;
| *cert*
| Certificate to add unless already present&semi; caller retains ownership&period;
|===


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