Disable partial writes for early data
authorMatt Caswell <matt@openssl.org>
Wed, 27 Dec 2017 13:36:45 +0000 (13:36 +0000)
committerMatt Caswell <matt@openssl.org>
Thu, 28 Dec 2017 17:32:41 +0000 (17:32 +0000)
commitf7414b082714692bce592cf1645e6b1839269c1b
tree88bccc71a04e48e73bcef6f22232653c35fd1032
parent2a8db717132ec8be7dc24ce7083972245b1173ae
Disable partial writes for early data

We don't keep track of the number of bytes written between in the
SSL_write_ex() call and the subsequent flush. If the flush needs to be
retried then we will have forgotten how many bytes actually got written.
The simplest solution is to just disable it for this scenario.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4802)
ssl/ssl_lib.c