[#OSSL_CMP_CTX_build_cert_chain]
= OSSL&lowbar;CMP&lowbar;CTX&lowbar;build&lowbar;cert&lowbar;chain
:mrdocs:

Build and store a certificate chain for the CMP signer certificate&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OSSL&lowbar;CMP&lowbar;CTX&lowbar;build&lowbar;cert&lowbar;chain(
    xref:OSSL_CMP_CTX.adoc[OSSL&lowbar;CMP&lowbar;CTX]* ctx,
    xref:X509_STORE.adoc[X509&lowbar;STORE]* own&lowbar;trusted,
    stack&lowbar;st&lowbar;X509* candidates);
----

== Return Value

1 on success, 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| CMP context&period;
| *own&lowbar;trusted*
| Optional trust store for chain validation, or NULL to ignore verification errors&period;
| *candidates*
| Optional intermediate certificates to augment the untrusted set&period;
|===


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