mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
cd1a88b327
Reviewed-by: Richard Levitte <levitte@openssl.org>
29 lines
569 B
Plaintext
29 lines
569 B
Plaintext
=pod
|
|
|
|
=head1 NAME
|
|
|
|
SSL_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 DESCRIPTION
|
|
|
|
SSL_SESSION_get0_hostname() retrieves the SNI value that was sent by the
|
|
client when the session was created, or NULL if no value was sent.
|
|
|
|
The value returned is a pointer to memory maintained within B<s> and
|
|
should not be free'd.
|
|
|
|
=head1 SEE ALSO
|
|
|
|
L<ssl(3)>,
|
|
L<d2i_SSL_SESSION(3)>,
|
|
L<SSL_SESSION_get_time(3)>,
|
|
L<SSL_SESSION_free(3)>
|
|
|
|
=cut
|