Fix TLSv1.3 ticket nonces
authorMatt Caswell <matt@openssl.org>
Fri, 1 Jun 2018 15:52:34 +0000 (16:52 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 7 Jun 2018 09:58:35 +0000 (10:58 +0100)
commit4ff1a5266685f4a687a9f91b531c2f979b96db22
tree43fd2babb3b724e2c1eb4786a66f66ee4757cf88
parent309371d6266877a8f04d0aa7b0f6add6d269d962
Fix TLSv1.3 ticket nonces

All tickets on a connection need to have a unique nonce. When this was
originally implemented we only ever sent one ticket on the conneciton so
this didn't matter. We were just using the value 0. Now we can get multiple
tickets to we need to start doing the ticket nonce properly.

Fixes #6387

Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6415)
include/openssl/ssl.h
ssl/ssl_asn1.c
ssl/ssl_locl.h
ssl/statem/extensions.c
ssl/statem/statem_clnt.c
ssl/statem/statem_srvr.c
ssl/tls13_enc.c