[#SSL_get0_peername]
= SSL&lowbar;get0&lowbar;peername
:mrdocs:

Return the peer certificate DNS name or subject CN that matched a configured reference identifier&period;

== Synopsis

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

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

== Return Value

Matched peer name (library&hyphen;owned&semi; invalid after clear&sol;free&sol;renegotiate), or NULL if none &sol; not applicable&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| SSL connection after hostname verification&period;
|===


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