[#OSSL_CMP_certConf_cb]
= OSSL&lowbar;CMP&lowbar;certConf&lowbar;cb
:mrdocs:

Default certificate&hyphen;confirmation callback that validates the new certificate chain&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OSSL&lowbar;CMP&lowbar;certConf&lowbar;cb(
    xref:OSSL_CMP_CTX.adoc[OSSL&lowbar;CMP&lowbar;CTX]* ctx,
    xref:X509.adoc[X509]* cert,
    int fail&lowbar;info,
    char const** text);
----

== Return Value

0 on acceptance, `fail&lowbar;info` if non&hyphen;zero, or OSSL&lowbar;CMP&lowbar;PKIFAILUREINFO&lowbar;incorrectData&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| CMP context&semi; callback argument should point to a trust store, or be NULL&period;
| *cert*
| Newly enrolled certificate to validate&period;
| *fail&lowbar;info*
| Pre&hyphen;decision PKIFailureInfo bit field&period;
| *text*
| Optional output for a detail string on rejection&period;
|===


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