[#CMS_RecipientInfo_kari_orig_id_cmp]
= CMS&lowbar;RecipientInfo&lowbar;kari&lowbar;orig&lowbar;id&lowbar;cmp
:mrdocs:

Compare a certificate against the originator identifier of a KARI RecipientInfo&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
CMS&lowbar;RecipientInfo&lowbar;kari&lowbar;orig&lowbar;id&lowbar;cmp(
    xref:CMS_RecipientInfo.adoc[CMS&lowbar;RecipientInfo]* ri,
    xref:X509.adoc[X509]* cert);
----

== Return Value

0 if `cert` matches, non&hyphen;zero if it does not, &hyphen;1 if the originator form is unsupported, or &hyphen;2 if `ri` is not KARI&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ri*
| Recipient info of type CMS&lowbar;RECIPINFO&lowbar;AGREE&period;
| *cert*
| Candidate originator certificate&period;
|===


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