Add a KeyTransRecipientInfo for recip to a partial CMS enveloped ContentInfo.
Declared in <openssl/cms.h>
CMS_RecipientInfo*
CMS_add1_recipient_cert(
CMS_ContentInfo* cms,
X509* recip,
unsigned int flags);
Internal pointer to the new CMS_RecipientInfo, or NULL on error.
| Name | Description |
|---|---|
| cms | Enveloped ContentInfo created with CMS_PARTIAL (for example via CMS_encrypt()). |
| recip | Recipient certificate whose public key wraps the content-encryption key. |
| flags | Optional CMS flags such as CMS_USE_KEYID. |