[#OSSL_CMP_MSG_get0_certreq_publickey]
= OSSL&lowbar;CMP&lowbar;MSG&lowbar;get0&lowbar;certreq&lowbar;publickey
:mrdocs:

Return the public key from the certificate template of a certificate&hyphen;request message&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:X509_PUBKEY.adoc[X509&lowbar;PUBKEY]*
OSSL&lowbar;CMP&lowbar;MSG&lowbar;get0&lowbar;certreq&lowbar;publickey(xref:OSSL_CMP_MSG.adoc[OSSL&lowbar;CMP&lowbar;MSG] const* msg);
----

== Return Value

Public key from the template, or NULL if absent or on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *msg*
| CMP certificate&hyphen;request message (IR, CR, KUR, or similar)&period;
|===


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