[#OSSL_CMP_CTX_get0_newPkey]
= OSSL&lowbar;CMP&lowbar;CTX&lowbar;get0&lowbar;newPkey
:mrdocs:

Return the new public or private key stored on the context&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:EVP_PKEY.adoc[EVP&lowbar;PKEY]*
OSSL&lowbar;CMP&lowbar;CTX&lowbar;get0&lowbar;newPkey(
    xref:OSSL_CMP_CTX.adoc[OSSL&lowbar;CMP&lowbar;CTX] const* ctx,
    int priv);
----

== Return Value

Internal key pointer, or NULL if unset&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| CMP context&period;
| *priv*
| Non&hyphen;zero to return the private key, zero for the public key&period;
|===


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