[#SSL_SESSION_set1_hostname] = SSL_SESSION_set1_hostname :mrdocs: Set the SNI hostname stored on a session to a copy of `hostname.` == Synopsis Declared in `<openssl/ssl.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int SSL_SESSION_set1_hostname( xref:SSL_SESSION.adoc[SSL_SESSION]* s, char const* hostname); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *s* | Session to update. | *hostname* | Hostname string to copy, or NULL to clear. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#