[#OSSL_CMP_CTX_new]
= OSSL&lowbar;CMP&lowbar;CTX&lowbar;new
:mrdocs:

Allocate a CMP context with default options for client or server use&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:OSSL_CMP_CTX.adoc[OSSL&lowbar;CMP&lowbar;CTX]*
OSSL&lowbar;CMP&lowbar;CTX&lowbar;new(
    xref:OSSL_LIB_CTX.adoc[OSSL&lowbar;LIB&lowbar;CTX]* libctx,
    char const* propq);
----

== Return Value

New OSSL&lowbar;CMP&lowbar;CTX, or NULL on allocation failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *libctx*
| Library context, or NULL for the default&period;
| *propq*
| Property query string for algorithm fetching, or NULL&period;
|===


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