[#CMS_RecipientInfo_kari_set0_pkey] = CMS_RecipientInfo_kari_set0_pkey :mrdocs: Associate a private key with a key‐agreement (KARI) CMS RecipientInfo. == Synopsis Declared in `<openssl/cms.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int CMS_RecipientInfo_kari_set0_pkey( xref:CMS_RecipientInfo.adoc[CMS_RecipientInfo]* ri, xref:EVP_PKEY.adoc[EVP_PKEY]* pk); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *ri* | Recipient info that must be of type CMS_RECIPINFO_AGREE. | *pk* | Private key used for key agreement; ownership transfers to `ri` (may be NULL to clear). |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#