Add a test for setting initial SNI in CH but not using it with early_data
authorMatt Caswell <matt@openssl.org>
Wed, 11 Oct 2017 13:42:25 +0000 (14:42 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 12 Oct 2017 14:19:49 +0000 (15:19 +0100)
commit141e470947327e0c4e8ef3c299b42d01064c484c
tree4ac25de0372680d6a2244bb3a1ba1c3b6e6d5b90
parent9fb6cb810b769abbd60f11ef6e936a4e4456b19d
Add a test for setting initial SNI in CH but not using it with early_data

Test for the bug where early_data is not accepted by the server when it
does not have an SNI callback set up, but the client sent a servername in
the initial ClientHello establishing the session.

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