Encryption BIOs misbehave when used with non blocking I/O.
authorDr. Stephen Henson <steve@openssl.org>
Thu, 27 Feb 2003 14:08:44 +0000 (14:08 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 27 Feb 2003 14:08:44 +0000 (14:08 +0000)
commit57bc7769b735a49caeebcdb6d57386766cd06df7
treea96bbb04d595c010cbeba4170f8e995c70cbccc0
parent0461b8c90b9755cbb6760081ea242fb57a66bf74
Encryption BIOs misbehave when used with non blocking I/O.

Two fixes:

1. If BIO_write() fails inside enc_write() it should return the
   total number of bytes successfully written.

2. If BIO_write() fails during BIO_flush() it should return immediately
   with the error code: previously it would fall through to the final
   encrypt, corrupting the buffer.
crypto/evp/bio_enc.c