Provide better documentation for SSL_get_servername()
authorMatt Caswell <matt@openssl.org>
Thu, 28 Nov 2019 12:03:00 +0000 (12:03 +0000)
committerMatt Caswell <matt@openssl.org>
Thu, 30 Jan 2020 16:12:16 +0000 (16:12 +0000)
commit721eb8f631882c9b1dbbdc8564f806bb177da4e3
treef3048d1ffbe5db612391c8cd1e14e68de4c6ae8f
parentf6f81b2dbc802e41e792003512e7900628f7a7e8
Provide better documentation for SSL_get_servername()

The behaviour of SSL_get_servername() is quite complicated and depends on
numerous factors such as whether it is called on the client or the server,
whether it is called before or after the handshake, what protocol version
was negotiated, and whether a resumption was attempted or was successful.

We attempt to document the behavior more clearly.

Reviewed-by: Ben Kaduk <kaduk@mit.edu>
(Merged from https://github.com/openssl/openssl/pull/10018)

(cherry picked from commit 0dc7c8e8314f27ac093b2d7bc8f13d0dfd302bdb)
doc/man3/SSL_CTX_set_tlsext_servername_callback.pod
doc/man3/SSL_SESSION_get0_hostname.pod