CMS_RecipientInfo_kari_get0_alg

Get the key-encryption algorithm and optional UKM from a key-agreement recipient info.

Synopsis

Declared in <openssl/cms.h>

int
CMS_RecipientInfo_kari_get0_alg(
    CMS_RecipientInfo* ri,
    X509_ALGOR** palg,
    ASN1_OCTET_STRING** pukm);

Return Value

1 on success, or 0 if ri is not a key-agreement recipient info.

Parameters

NameDescription
riRecipient info of type CMS_RECIPINFO_AGREE.
palgReceives the keyEncryptionAlgorithm, or NULL if not requested.
pukmReceives the user keying material (UKM), or NULL if not requested or absent.