[#OSSL_STORE_INFO_new]
= OSSL&lowbar;STORE&lowbar;INFO&lowbar;new
:mrdocs:

Create an OSSL&lowbar;STORE&lowbar;INFO that takes ownership of `data` for `type&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:OSSL_STORE_INFO.adoc[OSSL&lowbar;STORE&lowbar;INFO]*
OSSL&lowbar;STORE&lowbar;INFO&lowbar;new(
    int type,
    void* data);
----

== Return Value

New OSSL&lowbar;STORE&lowbar;INFO, or NULL on error&semi; free with OSSL&lowbar;STORE&lowbar;INFO&lowbar;free()&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *type*
| OSSL&lowbar;STORE&lowbar;INFO&lowbar;&ast; type code matching `data&period;`
| *data*
| Object pointer transferred to the new info (freed with the info)&period;
|===


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