[#CMS_SignerInfo_cert_cmp]
= CMS&lowbar;SignerInfo&lowbar;cert&lowbar;cmp
:mrdocs:

Compare a certificate against the signer identifier of a CMS SignerInfo&period;

== Synopsis

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

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

== Return Value

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *si*
| SignerInfo whose sid is compared&period;
| *cert*
| Candidate signer certificate&period;
|===


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