Tolerate a zero length ticket nonce
authorMatt Caswell <matt@openssl.org>
Tue, 18 Jul 2017 15:11:20 +0000 (16:11 +0100)
committerMatt Caswell <matt@openssl.org>
Tue, 18 Jul 2017 15:59:37 +0000 (16:59 +0100)
commit00848ea842f911dac4e10bb39a08bb4b6de9e66a
treeb926435776b9b12e8992be820d7aa361bff1a278
parent6b84e6bf19f5afad338f22a1a6d71a75d2d95fbf
Tolerate a zero length ticket nonce

TLSv1.3 draft-21 requires the ticket nonce to be at least 1 byte in length.
However NSS sends a zero length nonce. This is actually ok because the next
draft will allow zero length nonces anyway, so we should tolerate this.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3957)
ssl/statem/extensions.c
ssl/statem/statem_clnt.c