boringssl/ssl/test/runner
David Benjamin b16346b0ad Add SSL_set_reject_peer_renegotiations.
This causes any unexpected handshake records to be met with a fatal
no_renegotiation alert.

In addition, restore the redundant version sanity-checks in the handshake state
machines. Some code would zero the version field as a hacky way to break the
handshake on renego. Those will be removed when switching to this API.

The spec allows for a non-fatal no_renegotiation alert, but ssl3_read_bytes
makes it difficult to find the end of a ClientHello and skip it entirely. Given
that OpenSSL goes out of its way to map non-fatal no_renegotiation alerts to
fatal ones, this seems probably fine. This avoids needing to account for
another source of the library consuming an unbounded number of bytes without
returning data up.

Change-Id: Ie5050d9c9350c29cfe32d03a3c991bdc1da9e0e4
Reviewed-on: https://boringssl-review.googlesource.com/4300
Reviewed-by: Adam Langley <agl@google.com>
2015-04-13 22:38:58 +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 Add negative False Start tests. 2015-04-06 17:41:53 +00:00
conn.go Add tests for CHACHA20_POLY1305 ciphers. 2015-04-08 20:47:08 +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 Add tests for SSL_export_keying_material. 2015-04-06 20:47:33 +00:00
handshake_messages.go Add tests for OCSP stapling and SCT lists. 2014-12-02 19:26:01 +00:00
handshake_server.go Enforce that sessions are resumed at the version they're created. 2015-04-06 21:40:32 +00:00
key_agreement.go Test that signature_algorithm preferences are enforced. 2015-03-20 18:23:54 +00:00
key.pem
packet_adapter.go Add DTLS timeout and retransmit tests. 2015-02-03 00:40:58 +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 Add SSL_set_reject_peer_renegotiations. 2015-04-13 22:38:58 +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