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:01:26 +0000 (16:01 +0000)
commit0dc7c8e8314f27ac093b2d7bc8f13d0dfd302bdb
tree5160bed3c12f98ac18b6c6d50e529146425ad35b
parent49ef3d0719f132629ab76d4bcb4ab0c1e016277a
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)
doc/man3/SSL_CTX_set_tlsext_servername_callback.pod
doc/man3/SSL_SESSION_get0_hostname.pod