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

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.

Created with MrDocs