[#OSSL_CMP_get1_caCerts]
= OSSL&lowbar;CMP&lowbar;get1&lowbar;caCerts
:mrdocs:

Request CA certificates from the CMP server via genm&sol;genp and verify the response&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OSSL&lowbar;CMP&lowbar;get1&lowbar;caCerts(
    xref:OSSL_CMP_CTX.adoc[OSSL&lowbar;CMP&lowbar;CTX]* ctx,
    stack&lowbar;st&lowbar;X509** out);
----

== Return Value

1 on success, 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| CMP context referencing the CMP server&period;
| *out*
| Receives a newly allocated stack of CA certificates&semi; caller must free&period;
|===


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