[#OSSL_SELF_TEST_new]
= OSSL&lowbar;SELF&lowbar;TEST&lowbar;new
:mrdocs:

Allocate an OSSL&lowbar;SELF&lowbar;TEST handle that invokes `cb` during self&hyphen;test phases&period;

== Synopsis

Declared in `&lt;openssl&sol;self&lowbar;test&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:OSSL_SELF_TEST.adoc[OSSL&lowbar;SELF&lowbar;TEST]*
OSSL&lowbar;SELF&lowbar;TEST&lowbar;new(
    xref:OSSL_CALLBACK.adoc[OSSL&lowbar;CALLBACK]* cb,
    void* cbarg);
----

== Return Value

New self&hyphen;test object, or NULL on allocation failure&semi; free with OSSL&lowbar;SELF&lowbar;TEST&lowbar;free()&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *cb*
| Self&hyphen;test event callback receiving phase&sol;type&sol;desc params&period;
| *cbarg*
| Opaque argument passed to `cb&period;`
|===


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