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
packeted_bio.cc
packeted_bio.h
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