boringssl/crypto/err
Adam Langley ba5934b77f Tighten up EMS resumption behaviour.
The client and server both have to decide on behaviour when resuming a
session where the EMS state of the session doesn't match the EMS state
as exchanged in the handshake.

                        Original handshake
      |  No                                         Yes
------+--------------------------------------------------------------
      |
R     |  Server: ok [1]                     Server: abort [3]
e  No |  Client: ok [2]                     Client: abort [4]
s     |
u     |
m     |
e     |
  Yes |  Server: don't resume                   No problem
      |  Client: abort; server
      |    shouldn't have resumed

[1] Servers want to accept legacy clients. The draft[5] says that
resumptions SHOULD be rejected so that Triple-Handshake can't be done,
but we'll rather enforce that EMS was used when using tls-unique etc.

[2] The draft[5] says that even the initial handshake should be aborted
if the server doesn't support EMS, but we need to be able to talk to the
world.

[3] This is a very weird case where a client has regressed without
flushing the session cache. Hopefully we can be strict and reject these.

[4] This can happen when a server-farm shares a session cache but
frontends are not all updated at once. If Chrome is strict here then
hopefully we can prevent any servers from existing that will try to
resume an EMS session that they don't understand. OpenSSL appears to be
ok here: https://www.ietf.org/mail-archive/web/tls/current/msg16570.html

[5] https://tools.ietf.org/html/draft-ietf-tls-session-hash-05#section-5.2

BUG=492200

Change-Id: Ie1225a3960d49117b05eefa5a36263d8e556e467
Reviewed-on: https://boringssl-review.googlesource.com/4981
Reviewed-by: Adam Langley <agl@google.com>
2015-06-03 22:05:50 +00:00
..
asn1.errordata Reset all the error codes. 2015-02-11 23:12:08 +00:00
bio.errordata Fix some malloc test crashs. 2015-05-21 18:00:10 +00:00
bn.errordata Reject negative shifts for BN_rshift and BN_lshift. 2015-05-27 21:59:35 +00:00
buf.errordata Reset all the error codes. 2015-02-11 23:12:08 +00:00
cipher.errordata Add AEADs for AES-CTR with HMAC-SHA256. 2015-03-18 21:16:55 +00:00
CMakeLists.txt Add malloc test support to unit tests. 2015-05-21 17:59:48 +00:00
conf.errordata Reset all the error codes. 2015-02-11 23:12:08 +00:00
crypto.errordata Remove the ability to set custom ex_data implementations. 2015-04-15 23:23:50 +00:00
dh.errordata Reset all the error codes. 2015-02-11 23:12:08 +00:00
digest.errordata Precompute sorted array for error strings. 2015-02-09 17:35:31 -08:00
dsa.errordata Reset all the error codes. 2015-02-11 23:12:08 +00:00
ec.errordata Support arbitrary elliptic curve groups. 2015-05-15 00:59:37 +00:00
ecdh.errordata Reset all the error codes. 2015-02-11 23:12:08 +00:00
ecdsa.errordata Reset all the error codes. 2015-02-11 23:12:08 +00:00
engine.errordata Precompute sorted array for error strings. 2015-02-09 17:35:31 -08:00
err_data_generate.go Generate error data at build time. 2015-03-06 18:59:25 +00:00
err_test.cc Convert err_test to C++. 2015-04-01 19:59:44 +00:00
err.c Define compatibility function |ERR_remove_state|. 2015-05-12 19:06:18 +00:00
evp.errordata Add DSA support to EVP. 2015-04-06 16:58:45 -07:00
hkdf.errordata Precompute sorted array for error strings. 2015-02-09 17:35:31 -08:00
obj.errordata Reset all the error codes. 2015-02-11 23:12:08 +00:00
pem.errordata Reset all the error codes. 2015-02-11 23:12:08 +00:00
pkcs8.errordata Reset all the error codes. 2015-02-11 23:12:08 +00:00
rsa.errordata Reset all the error codes. 2015-02-11 23:12:08 +00:00
ssl.errordata Tighten up EMS resumption behaviour. 2015-06-03 22:05:50 +00:00
x509.errordata Add functions to parse and generate PKCS#7 files with CRLs. 2015-02-27 19:48:19 +00:00
x509v3.errordata Reset all the error codes. 2015-02-11 23:12:08 +00:00