boringssl/ssl/test/runner
David Benjamin 98e882ead1 Clean up s23_srvr.c.
ssl23_get_client_hello has lots of remnants of SSLv2 support and remnants of an
even older SSL_OP_NON_EXPORT_FIRST option (see upstream's
d92f0bb6e9ed94ac0c3aa0c939f2565f2ed95935) which complicates the logic.

Split it into three states and move V2ClientHello parsing into its own
function. Port it to CBS and CBB to give bounds checks on the V2ClientHello
parse.

This fixes a minor bug where, if the SSL_accept call in ssl23_get_client_hello
failed, cb would not be NULL'd and SSL_CB_ACCEPT_LOOP would get reported an
extra time.

It also unbreaks the invariant between s->packet, s->packet_length,
s->s3->rbuf.buf, and s->s3->rbuf.offset at the point the switch, although this
was of no consequence because the first ssl3_read_n call passes extend = 0
which resets s->packet and s->packet_length.

It also makes us tolerant to major version bumps in the ClientHello. Add tests
for TLS tolerance of both minor and major version bumps as well as the HTTP
request error codes.

Change-Id: I948337f4dc483f4ebe1742d3eba53b045b260257
Reviewed-on: https://boringssl-review.googlesource.com/1455
Reviewed-by: Adam Langley <agl@google.com>
2014-08-12 21:10:56 +00:00
..
alert.go Inital import. 2014-06-20 13:17:32 -07:00
cert.pem Inital import. 2014-06-20 13:17:32 -07:00
cipher_suites.go runner: Implement DHE-RSA. 2014-08-04 20:12:58 +00:00
common.go Clean up s23_srvr.c. 2014-08-12 21:10:56 +00:00
conn.go Add tests for CVE-2014-3511. 2014-08-08 17:39:47 +00:00
ecdsa_cert.pem Inital import. 2014-06-20 13:17:32 -07:00
ecdsa_key.pem Inital import. 2014-06-20 13:17:32 -07:00
handshake_client.go Clean up s23_srvr.c. 2014-08-12 21:10:56 +00:00
handshake_messages.go Add a test to assert parsing V2ClientHellos works. 2014-08-04 20:10:29 +00:00
handshake_server.go Add RenewTicketOnResume tests. 2014-08-08 17:39:57 +00:00
key_agreement.go Remove SSL_OP_TLS_ROLLBACK_BUG. 2014-08-08 17:04:53 +00:00
key.pem Inital import. 2014-06-20 13:17:32 -07:00
prf.go runner: Require the CertificateVerify signature and hash to match. 2014-07-21 15:59:48 +00:00
runner.go Clean up s23_srvr.c. 2014-08-12 21:10:56 +00:00
ticket.go Fix runner.go session ticket support. 2014-07-23 15:31:24 +00:00
tls.go Inital import. 2014-06-20 13:17:32 -07:00