Allow zero-byte writes to be reported as success.
authorJohn Baldwin <jhb@FreeBSD.org>
Wed, 7 Oct 2020 21:34:19 +0000 (14:34 -0700)
committerBenjamin Kaduk <kaduk@mit.edu>
Sun, 29 Nov 2020 02:36:15 +0000 (18:36 -0800)
commit410f5bb18908d89e5e35339049adf4070925faec
tree44e5a5fe61c978f8790469c72862b6871b3d4793
parentd27a8e922ba0b5357abf435cca75b5fe133cfe94
Allow zero-byte writes to be reported as success.

When using KTLS, empty fragments sent as a mitigation for known-IV
weakenesses in TLS 1.0 are sent as writes of 0 bytes.  The TLS header
and trailer are added to the empty fragment by the kernel.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
(Merged from https://github.com/openssl/openssl/pull/13090)
ssl/record/rec_layer_s3.c