diff options
author | Matt Caswell <matt@openssl.org> | 2016-05-09 15:04:11 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-05-09 17:05:16 +0100 |
commit | 3105d695358d86c0f2a404b2b74a1870b941ce5e (patch) | |
tree | 73bbb09087b492e2a165e686b25a6044e2a1396c /doc | |
parent | 2e66d3d674d3a54593e0cbb4ff1f6039fd965d66 (diff) | |
download | openssl-3105d695358d86c0f2a404b2b74a1870b941ce5e.tar.gz |
Fix BIO_eof() for BIO pairs
BIO_eof() was always returning true when using a BIO pair. It should only
be true if the peer BIO is empty and has been shutdown.
RT#1215
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/crypto/BIO_s_bio.pod | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/crypto/BIO_s_bio.pod b/doc/crypto/BIO_s_bio.pod index 438b5dd8f3..e6d5c4967c 100644 --- a/doc/crypto/BIO_s_bio.pod +++ b/doc/crypto/BIO_s_bio.pod @@ -120,6 +120,9 @@ the application then waits for data to be available on the underlying transport before flushing the write buffer it will never succeed because the request was never sent! +BIO_eof() is true if no data is in the peer BIO and the peer BIO has been +shutdown. + =head1 RETURN VALUES BIO_new_bio_pair() returns 1 on success, with the new BIOs available in |