[#NETSCAPE_SPKI_get_pubkey]
= NETSCAPE&lowbar;SPKI&lowbar;get&lowbar;pubkey
:mrdocs:

Extract the public key from a Netscape SPKI structure&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:EVP_PKEY.adoc[EVP&lowbar;PKEY]*
NETSCAPE&lowbar;SPKI&lowbar;get&lowbar;pubkey(xref:NETSCAPE_SPKI.adoc[NETSCAPE&lowbar;SPKI]* x);
----

== Return Value

Newly allocated EVP&lowbar;PKEY, or NULL on error&semi; free with EVP&lowbar;PKEY&lowbar;free()&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *x*
| SPKI object whose SPKAC contains the public key&period;
|===


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