[#OSSL_CMP_CTX_setup_CRM]
= OSSL&lowbar;CMP&lowbar;CTX&lowbar;setup&lowbar;CRM
:mrdocs:

Build a CRMF CertReqMsg from fields stored on the CMP context&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:OSSL_CRMF_MSG.adoc[OSSL&lowbar;CRMF&lowbar;MSG]*
OSSL&lowbar;CMP&lowbar;CTX&lowbar;setup&lowbar;CRM(
    xref:OSSL_CMP_CTX.adoc[OSSL&lowbar;CMP&lowbar;CTX]* ctx,
    int for&lowbar;KUR,
    int rid);
----

== Return Value

New CRMF message on success, or NULL on error&semi; caller must free&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| CMP context with template and POPO settings&period;
| *for&lowbar;KUR*
| Non&hyphen;zero when building a Key Update Request message&period;
| *rid*
| Certificate request ID to assign&period;
|===


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