[#SSL_SESSION_set1_hostname]
= SSL&lowbar;SESSION&lowbar;set1&lowbar;hostname
:mrdocs:

Set the SNI hostname stored on a session to a copy of `hostname&period;`

== Synopsis

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

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

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| Session to update&period;
| *hostname*
| Hostname string to copy, or NULL to clear&period;
|===


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