Fix test_client_hello with no-tls1_2_method
authorBenjamin Kaduk <bkaduk@akamai.com>
Thu, 7 Sep 2017 18:21:56 +0000 (13:21 -0500)
committerBenjamin Kaduk <bkaduk@akamai.com>
Thu, 7 Sep 2017 18:21:56 +0000 (13:21 -0500)
commit511fbc60d4b6ab5b4ab3a7ad79be6abe898189da
tree61f632a06e3e69cc65dd0de0bda2cd5bfdc99724
parent1c259bb51824a2e3da990c76dd49e5dcaed334ea
Fix test_client_hello with no-tls1_2_method

The extensions not sent when TLS 1.2 is not used caused the message
length to be 109, which is less than the 127 threshold needed
to activate the F5 workaround.  Add another 20 bytes of dummy ALPN
data do push it over the threshold.

Also, fix the definition of the (unused) local macro indicating
the threshold.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4346)
test/clienthellotest.c