[#EVP_PKEY_CTX_get0_peerkey]
= EVP&lowbar;PKEY&lowbar;CTX&lowbar;get0&lowbar;peerkey
:mrdocs:

Return the peer key previously set on a derive context&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:EVP_PKEY.adoc[EVP&lowbar;PKEY]*
EVP&lowbar;PKEY&lowbar;CTX&lowbar;get0&lowbar;peerkey(xref:EVP_PKEY_CTX.adoc[EVP&lowbar;PKEY&lowbar;CTX]* ctx);
----

== Return Value

Peer EVP&lowbar;PKEY owned by `ctx` (do not free), or NULL if unset&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Key context that may hold a peer key from EVP&lowbar;PKEY&lowbar;derive&lowbar;set&lowbar;peer()&period;
|===


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