Delay flush until after CCS with early_data
authorMatt Caswell <matt@openssl.org>
Thu, 30 Nov 2017 11:28:26 +0000 (11:28 +0000)
committerMatt Caswell <matt@openssl.org>
Thu, 14 Dec 2017 15:06:38 +0000 (15:06 +0000)
commit5cc807da2571c52cc7c1c87197a81963def7ee3a
treec1f93c160ba832949cc0732980ade7bf97e7dec7
parent7b0a3ce0f9f54cf7b527fe57d98748a7aaa571bd
Delay flush until after CCS with early_data

Normally we flush immediately after writing the ClientHello. However if
we are going to write a CCS immediately because we've got early_data to
come, then we should move the flush until after the CCS.

Reviewed-by: Ben Kaduk <kaduk@mit.edu>
(Merged from https://github.com/openssl/openssl/pull/4701)
ssl/statem/extensions_clnt.c
ssl/statem/statem_clnt.c