[#SSL_get0_peer_certificate]
= SSL&lowbar;get0&lowbar;peer&lowbar;certificate
:mrdocs:

Return the peer&apos;s leaf certificate without incrementing its reference count&period;

== Synopsis

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

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

== Return Value

Peer X509 (owned by `s&semi;` do not free), or NULL if none is available&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| SSL connection after a handshake that presented a certificate&period;
|===


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