Transfer ownership of a private key into a key-transport RecipientInfo.
Declared in <openssl/cms.h>
int
CMS_RecipientInfo_set0_pkey(
CMS_RecipientInfo* ri,
EVP_PKEY* pkey);
1 on success, or 0 on failure.
| 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. |