[#SSL_SESSION_get0_peer]
= SSL&lowbar;SESSION&lowbar;get0&lowbar;peer
:mrdocs:

Return the peer certificate stored in an SSL session (borrowed pointer)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:X509.adoc[X509]*
SSL&lowbar;SESSION&lowbar;get0&lowbar;peer(xref:SSL_SESSION.adoc[SSL&lowbar;SESSION]* s);
----

== Return Value

Peer X509 certificate, or NULL if none is available&semi; do not free unless X509&lowbar;up&lowbar;ref was called&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| Session to query&period;
|===


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