boringssl/ssl/test/runner
David Benjamin ef1b009344 Consider session if the client supports tickets but offered a session ID.
This is a minor regression from
https://boringssl-review.googlesource.com/5235.

If the client, for whatever reason, had an ID-based session but also
supports tickets, it will send non-empty ID + empty ticket extension.
If the ticket extension is non-empty, then the ID is not an ID but a
dummy signaling value, so 5235 avoided looking it up. But if it is
present and empty, the ID is still an ID and should be looked up.

This shouldn't have any practical consequences, except if a server
switched from not supporting tickets and then started supporting it,
while keeping the session cache fixed.

Add a test for this case, and tighten up existing ID vs ticket tests so
they fail if we resume with the wrong type.

Change-Id: Id4d08cd809af00af30a2b67fe3a971078e404c75
Reviewed-on: https://boringssl-review.googlesource.com/6554
Reviewed-by: Adam Langley <alangley@gmail.com>
2016-01-15 20:08:52 +00:00
..
curve25519 Bundle a copy of golang.org/x/crypto/curve25519 for testing. 2015-12-22 17:47:53 +00:00
poly1305 Switch the bundled poly1305 to relative imports. 2015-12-22 17:47:28 +00:00
alert.go Make the runner tests a go “test” 2015-09-30 17:10:45 +00:00
cert.pem
chacha20_poly1305_test.go Implement RFC 7539 in Go. 2015-12-16 23:33:39 +00:00
chacha20_poly1305.go Switch the bundled poly1305 to relative imports. 2015-12-22 17:47:28 +00:00
channel_id_key.pem
cipher_suites.go Implement draft-ietf-tls-chacha20-poly1305-04 in Go. 2015-12-16 23:33:54 +00:00
common.go Consider session if the client supports tickets but offered a session ID. 2016-01-15 20:08:52 +00:00
conn.go Add tests for malformed HelloRequests. 2015-12-16 17:40:29 +00:00
dtls.go Fix DTLS asynchronous write handling. 2015-11-02 23:16:22 +00:00
ecdsa_cert.pem
ecdsa_key.pem
handshake_client.go Consider session if the client supports tickets but offered a session ID. 2016-01-15 20:08:52 +00:00
handshake_messages.go Make the runner tests a go “test” 2015-09-30 17:10:45 +00:00
handshake_server.go Add tests for bad ChangeCipherSpecs. 2015-12-16 17:39:43 +00:00
key_agreement.go Implement draft-ietf-tls-curve25519-01 in Go. 2015-12-22 18:43:33 +00:00
key.pem
packet_adapter.go Add tests for bad ChangeCipherSpecs. 2015-12-16 17:39:43 +00:00
prf.go Make the runner tests a go “test” 2015-09-30 17:10:45 +00:00
recordingconn.go Make recordingconn emit more useful things for DTLS. 2015-11-02 23:01:01 +00:00
runner_test.go Make the runner tests a go “test” 2015-09-30 17:10:45 +00:00
runner.go Consider session if the client supports tickets but offered a session ID. 2016-01-15 20:08:52 +00:00
test_output.go Make the runner tests a go “test” 2015-09-30 17:10:45 +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