[#OSSL_CMP_CTX_set0_trustedStore]
= OSSL&lowbar;CMP&lowbar;CTX&lowbar;set0&lowbar;trustedStore
:mrdocs:

Set the trusted certificate store used to authenticate the CMP server&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;set0&lowbar;trustedStore(
    xref:OSSL_CMP_CTX.adoc[OSSL&lowbar;CMP&lowbar;CTX]* ctx,
    xref:X509_STORE.adoc[X509&lowbar;STORE]* store);
----

== Return Value

1 on success, 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| CMP context&period;
| *store*
| X509&lowbar;STORE of trust anchors and optional CRLs, or NULL to clear&period;
|===


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