boringssl/ssl/test/runner
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
..
alert.go
cert.pem
chacha20_poly1305_test.go Add tests for CHACHA20_POLY1305 ciphers. 2015-04-08 20:47:08 +00:00
chacha20_poly1305.go Add tests for CHACHA20_POLY1305 ciphers. 2015-04-08 20:47:08 +00:00
channel_id_key.pem
cipher_suites.go Convert the renegotiation extension to the new system. 2015-07-01 19:30:53 +00:00
common.go Add more aggressive DTLS replay tests. 2015-08-05 21:10:48 +00:00
conn.go Add more aggressive DTLS replay tests. 2015-08-05 21:10:48 +00:00
dtls.go Add more aggressive DTLS replay tests. 2015-08-05 21:10:48 +00:00
ecdsa_cert.pem
ecdsa_key.pem
handshake_client.go Add tests for bad CertificateVerify signatures. 2015-07-31 22:32:17 +00:00
handshake_messages.go Run go fmt on runner. 2015-07-31 22:27:05 +00:00
handshake_server.go Run go fmt on runner. 2015-07-31 22:27:05 +00:00
key_agreement.go Set minimum DH group size to 1024 bits. 2015-05-20 18:35:31 +00:00
key.pem
packet_adapter.go runner: fix a couple of nits from govet. 2015-04-17 21:45:50 +00:00
poly1305.go Add tests for CHACHA20_POLY1305 ciphers. 2015-04-08 20:47:08 +00:00
prf.go
recordingconn.go
runner.go Slightly simplify V2ClientHello sniffing. 2015-08-17 20:48:06 +00:00
test_output.go
ticket.go
tls.go