Updated SSL_SESSION_get0_hostname() documentation to be consistent with the function

CLA: trivial

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26559)
This commit is contained in:
RSA-1977 2025-01-24 12:09:56 -05:00 committed by Tomas Mraz
parent c0251d7b0f
commit 8d6fd6142b

View File

@ -24,10 +24,8 @@ 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 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.
client when the session was created if it was accepted by the server. Otherwise
NULL is returned.
The value returned is a pointer to memory maintained within B<s> and
should not be free'd.