boringssl/ssl/test/runner
David Benjamin ac8302a092 Don't set need_record_splitting until aead_write_ctx is set.
setup_key_block is called when the first CCS resolves, but for resumptions this
is the incoming CCS (see ssl3_do_change_cipher_spec). Rather than set
need_record_splitting there, it should be set in the write case of
tls1_change_cipher_state.

This fixes a crash from the new record layer code in resumption when
record-splitting is enabled. Tweak the record-splitting tests to cover this
case.

This also fixes a bug where renego from a cipher which does require record
splitting to one which doesn't continues splitting. Since version switches are
not allowed, this can only happen after a renego from CBC to RC4.

Change-Id: Ie4e1b91282b10f13887b51d1199f76be4fbf09ad
Reviewed-on: https://boringssl-review.googlesource.com/5787
Reviewed-by: Adam Langley <agl@google.com>
2015-09-01 22:30:48 +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
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 Remove Go implementation of non-standard ECDHE_PSK_WITH_AES_128_GCM_SHA256. 2015-08-24 23:35:43 +00:00
common.go Forbid a server from negotiating both ALPN and NPN. 2015-09-01 20:46:42 +00:00
conn.go Fix buffer size computation. 2015-09-01 20:18:21 +00:00
dtls.go Add more aggressive DTLS replay tests. 2015-08-05 21:10:48 +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 Add tests for bad CertificateVerify signatures. 2015-07-31 22:32:17 +00:00
handshake_messages.go Forbid a server from negotiating both ALPN and NPN. 2015-09-01 20:46:42 +00:00
handshake_server.go Forbid a server from negotiating both ALPN and NPN. 2015-09-01 20:46:42 +00:00
key_agreement.go Set minimum DH group size to 1024 bits. 2015-05-20 18:35:31 +00:00
key.pem Inital import. 2014-06-20 13:17:32 -07:00
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 Don't set need_record_splitting until aead_write_ctx is set. 2015-09-01 22:30:48 +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