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

Add a KeyTransRecipientInfo for `recip` to a partial CMS enveloped ContentInfo&period;

== Synopsis

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

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

== Return Value

Internal pointer to the new CMS&lowbar;RecipientInfo, or NULL on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *cms*
| Enveloped ContentInfo created with CMS&lowbar;PARTIAL (for example via CMS&lowbar;encrypt())&period;
| *recip*
| Recipient certificate whose public key wraps the content&hyphen;encryption key&period;
| *flags*
| Optional CMS flags such as CMS&lowbar;USE&lowbar;KEYID&period;
|===


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