CMS_RecipientInfo_set0_pkey

Transfer ownership of a private key into a key-transport RecipientInfo.

Synopsis

Declared in <openssl/cms.h>

int
CMS_RecipientInfo_set0_pkey(
    CMS_RecipientInfo* ri,
    EVP_PKEY* pkey);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
riRecipient info of type CMS_RECIPINFO_TRANS.
pkeyPrivate key that ri will own (or NULL to clear); previous key is freed.