Provide better documentation for SSL_get_servername()
[openssl.git] / doc / man3 / SSL_SESSION_get0_hostname.pod
index 5a0e769409caa9bb7e2bb383f1c170777edc37ca..6e24a07df69d66b0167f50aba65295868ca769a3 100644 (file)
@@ -24,7 +24,10 @@ SSL_SESSION_set1_alpn_selected
 =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.
+client when the session was created if it was accepted by the server and TLSv1.2
+or below was negotiated. Otherwise NULL is returned. Note that in TLSv1.3 the
+SNI hostname is negotiated with each handshake including resumption handshakes
+and is therefore never associated with the session.
 
 The value returned is a pointer to memory maintained within B<s> and
 should not be free'd.