SSL test framework: port SNI tests
authorEmilia Kasper <emilia@openssl.org>
Mon, 20 Jun 2016 15:20:25 +0000 (17:20 +0200)
committerEmilia Kasper <emilia@openssl.org>
Tue, 28 Jun 2016 15:26:24 +0000 (17:26 +0200)
commitd2b23cd2b077de8507c49f632e20dfcdb653a35b
tree3a8a980e199c680d7e296468439c6f53d05fa1a0
parent2cdce3e32f0f70470d676352410557b626bc9d01
SSL test framework: port SNI tests

Observe that the old tests were partly ill-defined:
setting sn_server1 but not sn_server2 in ssltest_old.c does not enable
the SNI callback.

Fix this, and also explicitly test both flavours of SNI mismatch (ignore
/ fatal alert). Tests still pass.

Reviewed-by: Rich Salz <rsalz@openssl.org>
12 files changed:
test/README.ssltest.md
test/handshake_helper.c
test/recipes/80-test_ssl_old.t
test/ssl-tests/05-sni.conf
test/ssl-tests/05-sni.conf.in
test/ssl-tests/06-sni-ticket.conf
test/ssl-tests/06-sni-ticket.conf.in
test/ssl_test.c
test/ssl_test_ctx.c
test/ssl_test_ctx.h
test/ssl_test_ctx_test.c
test/ssl_test_ctx_test.conf