Test that SSL_get_servername returns what we expect
authorMatt Caswell <matt@openssl.org>
Thu, 26 Sep 2019 15:16:06 +0000 (16:16 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 30 Jan 2020 16:01:25 +0000 (16:01 +0000)
commit49ef3d0719f132629ab76d4bcb4ab0c1e016277a
tree6e912d4328e66642fe491932dc2c0470d74a7949
parent7955c1f16e72dc944677fd1dbf4b1300e75f1c84
Test that SSL_get_servername returns what we expect

Test this on both the client and the server after a normal handshake,
and after a resumption handshake. We also test what happens if an
inconsistent SNI is set between the original handshake and the resumption
handshake. Finally all of this is also tested in TLSv1.2 and TLSv1.3.

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