[#OSSL_CMP_STATUSINFO_new]
= OSSL&lowbar;CMP&lowbar;STATUSINFO&lowbar;new
:mrdocs:

Allocate a PKIStatusInfo with status, optional failInfo, and statusString text&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:OSSL_CMP_PKISI.adoc[OSSL&lowbar;CMP&lowbar;PKISI]*
OSSL&lowbar;CMP&lowbar;STATUSINFO&lowbar;new(
    int status,
    int fail&lowbar;info,
    char const* text);
----

== Return Value

New PKIStatusInfo, or NULL on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *status*
| PKIStatus value (OSSL&lowbar;CMP&lowbar;PKISTATUS&lowbar;&ast;)&period;
| *fail&lowbar;info*
| PKIFailureInfo bit field, or 0 if none&period;
| *text*
| Optional status detail string copied into statusString, or NULL&period;
|===


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