]> granicus.if.org Git - openssl/commit
Encryption BIOs misbehave when used with non blocking I/O.
authorDr. Stephen Henson <steve@openssl.org>
Thu, 27 Feb 2003 14:07:59 +0000 (14:07 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 27 Feb 2003 14:07:59 +0000 (14:07 +0000)
commitb8dc9693a73bb96688c3e8eaac232fc5b2393609
tree7d6efc80aea10f5a53bf023b93c1c2f76e921d88
parent6ac26a5ce5e2891c35a283961a5aa0d9dcc65d6e
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