[#OSSL_CMP_validate_cert_path]
= OSSL&lowbar;CMP&lowbar;validate&lowbar;cert&lowbar;path
:mrdocs:

Validate that `cert` chains to a trust anchor in `trusted&lowbar;store&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OSSL&lowbar;CMP&lowbar;validate&lowbar;cert&lowbar;path(
    xref:OSSL_CMP_CTX.adoc[OSSL&lowbar;CMP&lowbar;CTX] const* ctx,
    xref:X509_STORE.adoc[X509&lowbar;STORE]* trusted&lowbar;store,
    xref:X509.adoc[X509]* cert);
----

== Return Value

1 if the path validates, 0 if not, or &hyphen;1 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| CMP context (used for untrusted intermediates and callbacks)&period;
| *trusted&lowbar;store*
| Trust store containing acceptable anchors&period;
| *cert*
| Certificate to validate&period;
|===


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