[#SSL_SESSION_get0_hostname]
= SSL&lowbar;SESSION&lowbar;get0&lowbar;hostname
:mrdocs:

Return the SNI hostname associated with a session, if the server acknowledged SNI&period;

== Synopsis

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

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

== Return Value

Pointer to the hostname stored in `s` (do not free), or NULL if none&period;

== Parameters

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


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