[#CMS_RecipientInfo_kekri_get0_id]
= CMS&lowbar;RecipientInfo&lowbar;kekri&lowbar;get0&lowbar;id
:mrdocs:

Return non&hyphen;owning pointers to the key&hyphen;encryption key identifier fields of a KEKRI&period;

== Synopsis

Declared in `&lt;openssl&sol;cms&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
CMS&lowbar;RecipientInfo&lowbar;kekri&lowbar;get0&lowbar;id(
    xref:CMS_RecipientInfo.adoc[CMS&lowbar;RecipientInfo]* ri,
    xref:X509_ALGOR.adoc[X509&lowbar;ALGOR]** palg,
    xref:ASN1_OCTET_STRING.adoc[ASN1&lowbar;OCTET&lowbar;STRING]** pid,
    xref:ASN1_GENERALIZEDTIME.adoc[ASN1&lowbar;GENERALIZEDTIME]** pdate,
    xref:ASN1_OBJECT.adoc[ASN1&lowbar;OBJECT]** potherid,
    xref:ASN1_TYPE.adoc[ASN1&lowbar;TYPE]** pothertype);
----

== Return Value

1 on success, or 0 if `ri` is not a KEK recipient info&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ri*
| Recipient info of type CMS&lowbar;RECIPINFO&lowbar;KEK&period;
| *palg*
| Optional out&hyphen;parameter for the keyEncryptionAlgorithm, or NULL&period;
| *pid*
| Optional out&hyphen;parameter for the keyIdentifier OCTET STRING, or NULL&period;
| *pdate*
| Optional out&hyphen;parameter for the optional date, or NULL&period;
| *potherid*
| Optional out&hyphen;parameter for otherKeyAttribute OID, or NULL&period;
| *pothertype*
| Optional out&hyphen;parameter for otherKeyAttribute value, or NULL&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
