Clean up following new SNI tests
authorEmilia Kasper <emilia@openssl.org>
Thu, 9 Jun 2016 22:39:22 +0000 (00:39 +0200)
committerEmilia Kasper <emilia@openssl.org>
Mon, 13 Jun 2016 14:03:06 +0000 (16:03 +0200)
commit81fc33c951b645f31727dc811e02200bde4a0982
tree7b14f860635eb488254815300aecdf1792f46584
parenta7be5759cf9d8e2bf7c1ecd0efa2d53aae9ab706
Clean up following new SNI tests

- Only send SNI in SNI tests. This allows us to test handshakes without
  the SNI extension as well.
- Move all handshake-specific machinery to handshake_helper.c
- Use enum types to represent the enum everywhere
  (Resorting to plain ints can end in sign mismatch when the enum is
  represented by an unsigned type.)

Reviewed-by: Rich Salz <rsalz@openssl.org>
test/README.ssltest.md
test/handshake_helper.c
test/handshake_helper.h
test/ssl_test.c
test/ssl_test_ctx.c
test/ssl_test_ctx.h
test/ssl_test_ctx_test.c