[#OSSL_CMP_get1_rootCaKeyUpdate]
= OSSL&lowbar;CMP&lowbar;get1&lowbar;rootCaKeyUpdate
:mrdocs:

Request a root CA key update 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;rootCaKeyUpdate(
    xref:OSSL_CMP_CTX.adoc[OSSL&lowbar;CMP&lowbar;CTX]* ctx,
    xref:X509.adoc[X509] const* oldWithOld,
    xref:X509.adoc[X509]** newWithNew,
    xref:X509.adoc[X509]** newWithOld,
    xref:X509.adoc[X509]** oldWithNew);
----

== Return Value

1 on success, 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| CMP context referencing the CMP server&period;
| *oldWithOld*
| Current trusted root CA certificate, or NULL&period;
| *newWithNew*
| Receives the new root CA certificate&semi; caller must free&period;
| *newWithOld*
| Receives the newWithOld transition certificate if non&hyphen;NULL&semi; caller must free&period;
| *oldWithNew*
| Receives the oldWithNew transition certificate if non&hyphen;NULL&semi; caller must free&period;
|===


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