CMS_RecipientInfo_kekri_get0_id

Return non-owning pointers to the key-encryption key identifier fields of a KEKRI.

Synopsis

Declared in <openssl/cms.h>

int
CMS_RecipientInfo_kekri_get0_id(
    CMS_RecipientInfo* ri,
    X509_ALGOR** palg,
    ASN1_OCTET_STRING** pid,
    ASN1_GENERALIZEDTIME** pdate,
    ASN1_OBJECT** potherid,
    ASN1_TYPE** pothertype);

Return Value

1 on success, or 0 if ri is not a KEK recipient info.

Parameters

NameDescription
riRecipient info of type CMS_RECIPINFO_KEK.
palgOptional out-parameter for the keyEncryptionAlgorithm, or NULL.
pidOptional out-parameter for the keyIdentifier OCTET STRING, or NULL.
pdateOptional out-parameter for the optional date, or NULL.
potheridOptional out-parameter for otherKeyAttribute OID, or NULL.
pothertypeOptional out-parameter for otherKeyAttribute value, or NULL.