openssl/test/ossl_shim
Matt Caswell 2fe3e2b682 Fix BoringSSL external test failures
We recently turned on the TLSv1.3 downgrade sentinels by default.
Unfortunately we are using a very old version of the BoringSSL test
runner which uses an old draft implementation of TLSv1.3 that also
uses the downgrade sentinels by default. The two implementations do
not play well together and were causing spurious test failures. Until
such time as we update the BoringSSL test runner we disable the failing
tests:

SendFallbackSCSV

In this test the client is OpenSSL and the server is the boring test runner.
The client and server fail to negotiate TLSv1.3 because the test runner is
using an old draft TLSv1.3 version. The server does however add the
TLSv1.3->TLSv1.2 downgrade sentinel in the ServerHello random. Since we
recently turned on checking of the downgrade sentinels on the client side
this causes the connection to fail.

VersionNegotiationExtension-TLS11

In this test the test runner is the client and OpenSSL is the server. The
test modifies the supported_versions extension sent by the client to only
include TLSv1.1 (and some other spurious versions), even though the client
does actually support TLSv1.2. The server successfully selects TLSv1.1, but
adds the TLSv1.3->TLSv1.1 downgrade sentinel. This behaviour was recently
switched on by default. The test runner then checks the downgrade sentinel
and aborts the connection because it knows that it really supports TLSv1.2.

VersionNegotiationExtension-TLS1
VersionNegotiationExtension-SSL3

The same as VersionNegotiationExtension-TLS11 but for TLSv1 and SSLv3.

ConflictingVersionNegotiation

In this test the client is the test runner, and OpenSSL is the server. The
client offers TLSv1.2 in ClientHello.version, but also adds a
supported_versions extension that only offers TLSv1.1. The
supported_versions extension takes precedence and the server (correctly)
selects TLSv1.1. However it also adds the TLSv1.3->TLSv1.1 downgrade
sentinel. On the client side it knows it actually offered TLSv1.2 and so the
downgrade sentinel check fails.

[extended tests]

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7013)
2018-08-22 15:15:19 +01:00
..
include/openssl Cleanup some copyright stuff 2017-06-30 21:56:44 -04:00
async_bio.cc Fix invalid function type casts. 2017-12-15 19:33:48 +01:00
async_bio.h Swap header copyrights to standard OpenSSL 2016-11-04 10:38:54 +00:00
build.info Attempt to fix boringssl tests 2018-03-09 17:23:00 -06:00
ossl_config.json Fix BoringSSL external test failures 2018-08-22 15:15:19 +01:00
ossl_shim.cc Fix ossl_shim SNI handling 2018-07-26 15:06:53 -05:00
packeted_bio.cc Fix invalid function type casts. 2017-12-15 19:33:48 +01:00
packeted_bio.h Update copyright year 2018-02-13 13:59:25 +00:00
test_config.cc Fix 12 Boring tests involving NULL-SHA ciphersuites 2017-03-14 14:29:31 +00:00
test_config.h Swap header copyrights to standard OpenSSL 2016-11-04 10:38:54 +00:00