[#CMS_RecipientInfo_set0_pkey] = CMS_RecipientInfo_set0_pkey :mrdocs: Transfer ownership of a private key into a key‐transport RecipientInfo. == Synopsis Declared in `<openssl/cms.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int CMS_RecipientInfo_set0_pkey( xref:CMS_RecipientInfo.adoc[CMS_RecipientInfo]* ri, xref:EVP_PKEY.adoc[EVP_PKEY]* pkey); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *ri* | Recipient info of type CMS_RECIPINFO_TRANS. | *pkey* | Private key that `ri` will own (or NULL to clear); previous key is freed. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#