[#CMS_RecipientInfo_kekri_id_cmp]
= CMS&lowbar;RecipientInfo&lowbar;kekri&lowbar;id&lowbar;cmp
:mrdocs:

Compare a key identifier against the keyIdentifier of a KEK RecipientInfo&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;id&lowbar;cmp(
    xref:CMS_RecipientInfo.adoc[CMS&lowbar;RecipientInfo]* ri,
    unsigned char const* id,
    size&lowbar;t idlen);
----

== Return Value

0 if the identifiers match, or non&hyphen;zero otherwise&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ri*
| Recipient info of type CMS&lowbar;RECIPINFO&lowbar;KEK&period;
| *id*
| Key identifier bytes to compare&period;
| *idlen*
| Length of `id` in octets&period;
|===


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