Fix clienthellotest with TLSv1.3
authorMatt Caswell <matt@openssl.org>
Wed, 7 Feb 2018 10:55:02 +0000 (10:55 +0000)
committerMatt Caswell <matt@openssl.org>
Wed, 7 Feb 2018 21:34:18 +0000 (21:34 +0000)
commit0f41dc0e9e9e6a8c2a43fa6af5fdf5359283e2ba
tree216b1318945aa2545dbfe77323d0b75c43c4aebc
parentf518cef40c431188b4910ca9bd8ef3778f599bb5
Fix clienthellotest with TLSv1.3

If TLSv1.3 is enabled and combined with other options that extend the
size of the ClientHello, then the clienthello test can sometimes fail
because the ClientHello has grown too large. Part of the purpose of the
test is to check that the padding extension works properly. This requires
the ClientHello size to be kept within certain bounds.

By restricting the number of ciphersuites sent we can reduce the size of
the ClientHello.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5266)
test/clienthellotest.c