boringssl/ssl/test
David Benjamin bf82aede67 Disable all TLS crypto in fuzzer mode.
Both sides' signature and Finished checks still occur, but the results
are ignored. Also, all ciphers behave like the NULL cipher.
Conveniently, this isn't that much code since all ciphers and their size
computations funnel into SSL_AEAD_CTX.

This does carry some risk that we'll mess up this code. Up until now, we've
tried to avoid test-only changes to the SSL stack.

There is little risk that anyone will ship a BORINGSSL_UNSAFE_FUZZER_MODE build
for anything since it doesn't interop anyway. There is some risk that we'll end
up messing up the disableable checks. However, both skipped checks have
negative tests in runner (see tests that set InvalidSKXSignature and
BadFinished). For good measure, I've added a server variant of the existing
BadFinished test to this CL, although they hit the same code.

Change-Id: I37f6b4d62b43bc08fab7411965589b423d86f4b8
Reviewed-on: https://boringssl-review.googlesource.com/7287
Reviewed-by: Adam Langley <agl@google.com>
2016-03-02 23:39:36 +00:00
..
runner Disable all TLS crypto in fuzzer mode. 2016-03-02 23:39:36 +00:00
async_bio.cc Fix DTLS asynchronous write handling. 2015-11-02 23:16:22 +00:00
async_bio.h Fix DTLS asynchronous write handling. 2015-11-02 23:16:22 +00:00
bssl_shim.cc Ensure runner notices post-main stderr output. 2016-03-02 15:37:45 +00:00
CMakeLists.txt Add malloc test support to unit tests. 2015-05-21 17:59:48 +00:00
packeted_bio.cc
packeted_bio.h Include <sys/time.h> in packeted_bio.h for 'timeval' 2015-12-15 18:11:18 +00:00
scoped_types.h
test_config.cc Make it possible to tell what curve was used on the server. 2015-12-22 23:12:25 +00:00
test_config.h Make it possible to tell what curve was used on the server. 2015-12-22 23:12:25 +00:00