boringssl/ssl/test
David Benjamin 97760d5254 Slightly simplify V2ClientHello sniffing.
Rather than sniff for ClientHello, just fall through to standard logic
once weird cases are resolved.

This means that garbage will now read as WRONG_VERSION rather than
UNKNOWN_PROTOCOL, but the rules here were slightly odd anyway. This also
means we'll now accept empty records before the ClientHello (up to the
empty record limit), and process records of the wrong type with the
usual codepath during the handshake.

This shouldn't be any more risk as it just makes the ClientHello more
consistent with the rest of the protocol. A TLS implementation that
doesn't parse V2ClientHello would do the same unless it still
special-cased the first record. All newly-exposed states are reachable
by fragmenting ClientHello by one byte and then sending the record in
question.

BUG=468889

Change-Id: Ib701ae5d8adb663e158c391639b232a9d9cd1c6e
Reviewed-on: https://boringssl-review.googlesource.com/5712
Reviewed-by: Adam Langley <agl@google.com>
2015-08-17 20:48:06 +00:00
..
runner Slightly simplify V2ClientHello sniffing. 2015-08-17 20:48:06 +00:00
async_bio.cc
async_bio.h
bssl_shim.cc Promote SSL_get0_certificate_types to a proper function. 2015-08-17 19:13:35 +00:00
CMakeLists.txt Add malloc test support to unit tests. 2015-05-21 17:59:48 +00:00
packeted_bio.cc Remove OPENSSL_timeval. 2015-05-08 18:03:07 +00:00
packeted_bio.h Remove OPENSSL_timeval. 2015-05-08 18:03:07 +00:00
scoped_types.h
test_config.cc Implement custom extensions. 2015-07-31 01:12:00 +00:00
test_config.h Implement custom extensions. 2015-07-31 01:12:00 +00:00