[#CMS_add1_recipient] = CMS_add1_recipient :mrdocs: Add a recipient certificate and optional originator key material to enveloped CMS. == Synopsis Declared in `<openssl/cms.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:CMS_RecipientInfo.adoc[CMS_RecipientInfo]* CMS_add1_recipient( xref:CMS_ContentInfo.adoc[CMS_ContentInfo]* cms, xref:X509.adoc[X509]* recip, xref:EVP_PKEY.adoc[EVP_PKEY]* originatorPrivKey, xref:X509.adoc[X509]* originator, unsigned int flags); ---- == Return Value Internal pointer to the new CMS_RecipientInfo, or NULL on error. == Parameters [cols="1,4"] |=== | Name| Description | *cms* | Enveloped ContentInfo created with CMS_PARTIAL. | *recip* | Recipient certificate to add. | *originatorPrivKey* | Originator private key for key‐agreement recipients, or NULL when unused. | *originator* | Originator certificate corresponding to `originatorPrivKey,` or NULL when unused. | *flags* | Optional CMS flags such as CMS_USE_KEYID. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#