boringssl/ssl/test/runner
David Benjamin 44d3eed2bb Forbid caller-initiated renegotiations and all renego as a servers.
The only case where renego is supported is if we are a client and the
server sends a HelloRequest. That is still needed to support the renego
+ client auth hack in Chrome. Beyond that, no other forms of renego will
work.

The messy logic where the handshake loop is repurposed to send
HelloRequest and the extremely confusing tri-state s->renegotiate (which
makes SSL_renegotiate_pending a lie during the initial handshake as a
server) are now gone. The next change will further simplify things by
removing ssl->s3->renegotiate and the renego deferral logic. There's
also some server-only renegotiation checks that can go now.

Also clean up ssl3_read_bytes' HelloRequest handling. The old logic relied on
the handshake state machine to reject bad HelloRequests which... actually that
code probably lets you initiate renego by sending the first four bytes of a
ServerHello and expecting the peer to read it later.

BUG=429450

Change-Id: Ie0f87d0c2b94e13811fe8e22e810ab2ffc8efa6c
Reviewed-on: https://boringssl-review.googlesource.com/4824
Reviewed-by: Adam Langley <agl@google.com>
2015-05-21 20:43:56 +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 Add basic TLS Channel ID tests. 2014-08-26 17:40:36 +00:00
cipher_suites.go Add tests for CHACHA20_POLY1305 ciphers. 2015-04-08 20:47:08 +00:00
common.go Forbid caller-initiated renegotiations and all renego as a servers. 2015-05-21 20:43:56 +00:00
conn.go Deprecate SSL_*_read_ahead and enforce DTLS packet boundaries. 2015-05-21 18:29:34 +00:00
dtls.go Add tests for CHACHA20_POLY1305 ciphers. 2015-04-08 20:47:08 +00:00
ecdsa_cert.pem
ecdsa_key.pem
handshake_client.go Forbid caller-initiated renegotiations and all renego as a servers. 2015-05-21 20:43:56 +00:00
handshake_messages.go Add tests for OCSP stapling and SCT lists. 2014-12-02 19:26:01 +00:00
handshake_server.go Add client-side tests for renegotiation_info enforcement. 2015-05-20 21:10:14 +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 Test that signature_algorithm preferences are enforced. 2015-03-20 18:23:54 +00:00
recordingconn.go Extended master secret support. 2014-10-24 21:19:44 +00:00
runner.go Forbid caller-initiated renegotiations and all renego as a servers. 2015-05-21 20:43:56 +00:00
test_output.go runner and all_tests should exit with failure on failing tests. 2015-04-06 20:49:54 +00:00
ticket.go Extended master secret support. 2014-10-24 21:19:44 +00:00
tls.go Add DTLS replay tests. 2014-11-10 23:58:56 +00:00