CMS_RecipientInfo_kari_set0_pkey

Associate a private key with a key-agreement (KARI) CMS RecipientInfo.

Synopsis

Declared in <openssl/cms.h>

int
CMS_RecipientInfo_kari_set0_pkey(
    CMS_RecipientInfo* ri,
    EVP_PKEY* pk);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
riRecipient info that must be of type CMS_RECIPINFO_AGREE.
pkPrivate key used for key agreement; ownership transfers to ri (may be NULL to clear).