[#NETSCAPE_SPKI_set_pubkey]
= NETSCAPE&lowbar;SPKI&lowbar;set&lowbar;pubkey
:mrdocs:

Set the public key in a Netscape SPKI structure from `pkey&period;`

== Synopsis

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

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

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *x*
| SPKI whose SPKAC public&hyphen;key field is replaced&period;
| *pkey*
| Public key (or key pair) whose public component is encoded into `x&period;`
|===


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