boringssl/ssl/test
David Benjamin 4b27d9f8bd Never resume sessions on renegotiations.
This cuts down on one config knob as well as one case in the renego
combinatorial explosion. Since the only case we care about with renego
is the client auth hack, there's no reason to ever do resumption.
Especially since, no matter what's in the session cache:

- OpenSSL will only ever offer the session it just established,
  whether or not a newer one with client auth was since established.

- Chrome will never cache sessions created on a renegotiation, so
  such a session would never make it to the session cache.

- The new_session + SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION
  logic had a bug where it would unconditionally never offer tickets
  (but would advertise support) on renego, so any server doing renego
  resumption against an OpenSSL-derived client must not support
  session tickets.

This also gets rid of s->new_session which is now pointless.

BUG=429450

Change-Id: I884bdcdc80bff45935b2c429b4bbc9c16b2288f8
Reviewed-on: https://boringssl-review.googlesource.com/4732
Reviewed-by: Adam Langley <agl@google.com>
2015-05-14 22:53:21 +00:00
..
runner Never resume sessions on renegotiations. 2015-05-14 22:53:21 +00:00
async_bio.cc Use just one style for the shim. 2015-02-10 01:18:24 +00:00
async_bio.h Remove std::unique_ptr dependency on bssl_shim's scoped types. 2015-03-31 23:03:06 +00:00
bssl_shim.cc Default renegotiations to off. 2015-05-13 17:02:14 +00:00
CMakeLists.txt Remove unnecessary -ldl and clean up includes for malloc tests. 2015-03-21 00:07:42 +00:00
malloc.cc Disable the malloc test interceptor on ASan. 2015-04-01 20:08:18 +00:00
packeted_bio.cc Remove OPENSSL_timeval. 2015-05-08 18:03:07 +00:00
packeted_bio.h Remove OPENSSL_timeval. 2015-05-08 18:03:07 +00:00
scoped_types.h Remove std::unique_ptr dependency on bssl_shim's scoped types. 2015-03-31 23:03:06 +00:00
test_config.cc Add SSL_set_reject_peer_renegotiations. 2015-04-13 22:38:58 +00:00
test_config.h Add SSL_set_reject_peer_renegotiations. 2015-04-13 22:38:58 +00:00