Fix early data bug with pause between EoED and CF
authorMatt Caswell <matt@openssl.org>
Thu, 30 Mar 2017 14:24:07 +0000 (15:24 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 30 Mar 2017 14:45:45 +0000 (15:45 +0100)
commit116d0da5e8bcbb79ac1bdd1ec6bb861d9830e3a5
tree1401f434d61918449de41ded823d57033ab283df
parent1c7ae3dd9e04d6af40d162f10c607f90da48a6fc
Fix early data bug with pause between EoED and CF

If the server received EoED then SSL_read_early_data() will return
SSL_READ_EARLY_DATA_FINISH. However if the CF has not yet been processed
then SSL_is_init_finished() will still return 0. Therefore we should still
be able to write early data.

Fixes #3041

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