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

Create an OSSL&lowbar;STORE&lowbar;INFO holding a public key (takes ownership of `pubkey)&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&lowbar;PUBKEY(xref:EVP_PKEY.adoc[EVP&lowbar;PKEY]* pubkey);
----

== 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
| *pubkey*
| Public EVP&lowbar;PKEY&semi; ownership transfers on success&period;
|===


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