boringssl/ssl/test/runner
David Benjamin c7ce977fb9 Ignore all extensions but renegotiation_info in SSL 3.0.
SSL 3.0 used to have a nice and simple rule around extensions. They don't
exist. And then RFC 5746 came along and made this all extremely confusing.

In an SSL 3.0 server, rather than blocking ServerHello extension
emission when renegotiation_info is missing, ignore all ClientHello
extensions but renegotiation_info. This avoids a mismatch between local
state and the extensions with emit.

Notably if, for some reason, a ClientHello includes the session_ticket
extension, does NOT include renegotiation_info or the SCSV, and yet the
client or server are decrepit enough to negotiate SSL 3.0, the
connection will fail due to unexpected NewSessionTicket message.

See https://crbug.com/425979#c9 for a discussion of something similar
that came up in diagnosing https://poodle.io/'s buggy POODLE check.
This is analogous to upstream's
5a3d8eebb7667b32af0ccc3f12f314df6809d32d.

(Not supporting renego as a server in any form anyway, we may as well
completely ignore extensions, but then our extensions callbacks can't
assume the parse hooks are always called. This way the various NULL
handlers still function.)

Change-Id: Ie689a0e9ffb0369ef7a20ab4231005e87f32d5f8
Reviewed-on: https://boringssl-review.googlesource.com/6180
Reviewed-by: Adam Langley <agl@google.com>
2015-10-11 20:47:19 +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 Make the runner tests a go “test” 2015-09-30 17:10:45 +00:00
chacha20_poly1305.go Make the runner tests a go “test” 2015-09-30 17:10:45 +00:00
channel_id_key.pem Add basic TLS Channel ID tests. 2014-08-26 17:40:36 +00:00
cipher_suites.go Make the runner tests a go “test” 2015-09-30 17:10:45 +00:00
common.go Make the runner tests a go “test” 2015-09-30 17:10:45 +00:00
conn.go Make the runner tests a go “test” 2015-09-30 17:10:45 +00:00
dtls.go Make the runner tests a go “test” 2015-09-30 17:10:45 +00:00
ecdsa_cert.pem
ecdsa_key.pem
handshake_client.go Ignore all extensions but renegotiation_info in SSL 3.0. 2015-10-11 20:47:19 +00:00
handshake_messages.go Make the runner tests a go “test” 2015-09-30 17:10:45 +00:00
handshake_server.go Make the runner tests a go “test” 2015-09-30 17:10:45 +00:00
key_agreement.go Make the runner tests a go “test” 2015-09-30 17:10:45 +00:00
key.pem
packet_adapter.go Make the runner tests a go “test” 2015-09-30 17:10:45 +00:00
poly1305.go Make the runner tests a go “test” 2015-09-30 17:10:45 +00:00
prf.go Make the runner tests a go “test” 2015-09-30 17:10:45 +00:00
recordingconn.go Make the runner tests a go “test” 2015-09-30 17:10:45 +00:00
runner_test.go Make the runner tests a go “test” 2015-09-30 17:10:45 +00:00
runner.go Ignore all extensions but renegotiation_info in SSL 3.0. 2015-10-11 20:47:19 +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