boringssl/ssl/test/runner
David Benjamin 02edcd0098 Reject stray post-Finished messages in DTLS.
This is in preparation for switching finish_handshake to a
release_current_message hook. finish_handshake in DTLS is also
responsible for releasing any memory associated with extra messages in
the handshake.

Except that's not right and we need to make it an error anyway. Given
that the rest of the DTLS dispatch layer already strongly assumes there
is only one message in epoch one, putting the check in the fragment
processing works fine enough. Add tests for this.

This will certainly need revising when DTLS 1.3 happens (perhaps just a
version check, perhaps bringing finish_handshake back as a function that
can fail... which means we need a state just before SSL_ST_OK), but DTLS
1.3 post-handshake messages haven't really been written down, so let's
do the easy thing for now and add a test for when it gets more
interesting.

This removes the sequence number reset in the DTLS code. That reset
never did anything becase we don't and never will renego. We should make
sure DTLS 1.3 does not bring the reset back for post-handshake stuff.
(It was wrong in 1.2 too. Penultimate-flight retransmits and renego
requests are ambiguous in DTLS.)

BUG=83

Change-Id: I33d645a8550f73e74606030b9815fdac0c9fb682
Reviewed-on: https://boringssl-review.googlesource.com/8988
Reviewed-by: Adam Langley <agl@google.com>
2016-07-28 22:53:04 +00:00
..
curve25519 Bundle a copy of golang.org/x/crypto/curve25519 for testing. 2015-12-22 17:47:53 +00:00
newhope Avoid overflow in newhope.go. 2016-06-08 20:10:48 +00:00
poly1305 Switch the bundled poly1305 to relative imports. 2015-12-22 17:47:28 +00:00
alert.go Implement basic TLS 1.3 client handshake in Go. 2016-07-07 23:28:27 +00:00
cert.pem Adding RSA-PSS signature algorithms. 2016-07-12 19:10:51 +00:00
chacha20_poly1305_test.go Add ISC license to Go files that were missing a license. 2016-05-20 18:11:38 +00:00
chacha20_poly1305.go Add ISC license to Go files that were missing a license. 2016-05-20 18:11:38 +00:00
channel_id_key.pem Add basic TLS Channel ID tests. 2014-08-26 17:40:36 +00:00
cipher_suites.go Take DHE ciphers out of 1.3 in Go. 2016-07-27 22:37:02 +00:00
common.go Reject stray post-Finished messages in DTLS. 2016-07-28 22:53:04 +00:00
conn.go Implement KeyUpdate in Go. 2016-07-28 18:43:52 +00:00
deterministic.go Add a deterministic PRNG for runner. 2016-06-08 20:15:48 +00:00
dtls.go Check for buffered handshake messages on cipher change in DTLS. 2016-07-16 08:25:02 +00:00
ecdsa_p256_cert.pem Match ECDSA curve with hash in tests. 2016-07-12 18:26:14 +00:00
ecdsa_p256_key.pem Convert all of our test private keys to PKCS#8 PEM blobs. 2016-07-28 21:54:02 +00:00
ecdsa_p384_cert.pem Match ECDSA curve with hash in tests. 2016-07-12 18:26:14 +00:00
ecdsa_p384_key.pem Convert all of our test private keys to PKCS#8 PEM blobs. 2016-07-28 21:54:02 +00:00
ecdsa_p521_cert.pem Match ECDSA curve with hash in tests. 2016-07-12 18:26:14 +00:00
ecdsa_p521_key.pem Convert all of our test private keys to PKCS#8 PEM blobs. 2016-07-28 21:54:02 +00:00
handshake_client.go Reject stray post-Finished messages in DTLS. 2016-07-28 22:53:04 +00:00
handshake_messages.go Implement KeyUpdate in Go. 2016-07-28 18:43:52 +00:00
handshake_server.go Reject stray post-Finished messages in DTLS. 2016-07-28 22:53:04 +00:00
hkdf_test.go Add Go HKDF implementation with test. 2016-07-06 22:25:43 +00:00
hkdf.go Add Go HKDF implementation with test. 2016-07-06 22:25:43 +00:00
key_agreement.go Adding HelloRetryRequest. 2016-07-20 16:56:41 +00:00
key.pem Convert all of our test private keys to PKCS#8 PEM blobs. 2016-07-28 21:54:02 +00:00
packet_adapter.go Add tests for bad ChangeCipherSpecs. 2015-12-16 17:39:43 +00:00
prf.go Implement KeyUpdate in Go. 2016-07-28 18:43:52 +00:00
recordingconn.go Add ISC license to Go files that were missing a license. 2016-05-20 18:11:38 +00:00
rsa_1024_cert.pem Account for key size when selecting RSA-PSS. 2016-07-13 15:32:05 +00:00
rsa_1024_key.pem Account for key size when selecting RSA-PSS. 2016-07-13 15:32:05 +00:00
runner_test.go Add ISC license to Go files that were missing a license. 2016-05-20 18:11:38 +00:00
runner.go Reject stray post-Finished messages in DTLS. 2016-07-28 22:53:04 +00:00
sign.go Generalize invalid signature tests and run at all versions. 2016-07-14 16:07:56 +00:00
test_output.go Support unimplemented tests in test runner. 2016-07-27 18:54:40 +00:00
ticket.go Make the runner tests a go “test” 2015-09-30 17:10:45 +00:00
tls.go Make the runner tests a go “test” 2015-09-30 17:10:45 +00:00