[#CMS_RecipientInfo_ktri_cert_cmp]
= CMS&lowbar;RecipientInfo&lowbar;ktri&lowbar;cert&lowbar;cmp
:mrdocs:

Compare a certificate against the recipient identifier in a key&hyphen;transport RecipientInfo&period;

== Synopsis

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

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

== Return Value

0 if `cert` matches the recipient id, or non&hyphen;zero otherwise&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ri*
| Recipient info of type CMS&lowbar;RECIPINFO&lowbar;TRANS&period;
| *cert*
| Certificate whose issuer&sol;serial or subject key id is compared&period;
|===


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