=pod=head1 NAMESSL_SESSION_get0_hostname - retrieve the SNI hostname associated with a session=head1 SYNOPSIS #include <openssl/ssl.h> const char *SSL_SESSION_get0_hostname(const SSL_SESSSION *s);=head1 DESCRIPTIONSSL_SESSION_get0_hostname() retrieves the SNI value that was sent by theclient when the session was created, or NULL if no value was sent.The value returned is a pointer to memory maintained within B<s> andshould not be free'd.=head1 SEE ALSOL<ssl(3)>,L<d2i_SSL_SESSION(3)>,L<SSL_SESSION_get_time(3)>,L<SSL_SESSION_free(3)>=cut