5 SSL_SESSION_get0_hostname - retrieve the SNI hostname associated with a session
9 #include <openssl/ssl.h>
11 const char *SSL_SESSION_get0_hostname(const SSL_SESSSION *s);
15 SSL_SESSION_get0_hostname() retrieves the SNI value that was sent by the
16 client when the session was created, or NULL if no value was sent.
18 The value returned is a pointer to memory maintained within B<s> and
24 L<d2i_SSL_SESSION(3)>,
25 L<SSL_SESSION_get_time(3)>,
26 L<SSL_SESSION_free(3)>
30 Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.
32 Licensed under the OpenSSL license (the "License"). You may not use
33 this file except in compliance with the License. You can obtain a copy
34 in the file LICENSE in the source distribution or at
35 L<https://www.openssl.org/source/license.html>.