summaryrefslogtreecommitdiffstats
path: root/crypto/openssl/doc/ssl/SSL_read.pod
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2017-02-23 07:11:48 +0000
committerdelphij <delphij@FreeBSD.org>2017-02-23 07:11:48 +0000
commit6dc11fa9cd5453e09c102edababfba2e44efdce9 (patch)
tree041bbdf41eeaf0794bb696a95d3b066cab3b7d4f /crypto/openssl/doc/ssl/SSL_read.pod
parent6da66fdfb26a9dc621b9390dc946f7ac0b75fbee (diff)
downloadFreeBSD-src-6dc11fa9cd5453e09c102edababfba2e44efdce9.zip
FreeBSD-src-6dc11fa9cd5453e09c102edababfba2e44efdce9.tar.gz
Fix multiple vulnerabilities of OpenSSL. [SA-17:02]
Fix system hang when booting when PCI-express HotPlug is enabled. [EN-17:01] Fix NIS master updates are not pushed to NIS slave. [EN-17:02] Fix compatibility with Hyper-V/storage after KB3172614 or KB3179574. [EN-17:03] Make makewhatis output reproducible. [EN-17:04] Approved by: so
Diffstat (limited to 'crypto/openssl/doc/ssl/SSL_read.pod')
-rw-r--r--crypto/openssl/doc/ssl/SSL_read.pod32
1 files changed, 14 insertions, 18 deletions
diff --git a/crypto/openssl/doc/ssl/SSL_read.pod b/crypto/openssl/doc/ssl/SSL_read.pod
index 8ca0ce5..ef983c9 100644
--- a/crypto/openssl/doc/ssl/SSL_read.pod
+++ b/crypto/openssl/doc/ssl/SSL_read.pod
@@ -81,33 +81,29 @@ The following return values can occur:
=over 4
-=item E<gt>0
+=item E<gt> 0
-The read operation was successful; the return value is the number of
-bytes actually read from the TLS/SSL connection.
+The read operation was successful.
+The return value is the number of bytes actually read from the TLS/SSL
+connection.
-=item Z<>0
+=item Z<><= 0
-The read operation was not successful. The reason may either be a clean
-shutdown due to a "close notify" alert sent by the peer (in which case
-the SSL_RECEIVED_SHUTDOWN flag in the ssl shutdown state is set
-(see L<SSL_shutdown(3)|SSL_shutdown(3)>,
-L<SSL_set_shutdown(3)|SSL_set_shutdown(3)>). It is also possible, that
-the peer simply shut down the underlying transport and the shutdown is
-incomplete. Call SSL_get_error() with the return value B<ret> to find out,
-whether an error occurred or the connection was shut down cleanly
-(SSL_ERROR_ZERO_RETURN).
+
+=item E<lt>0
+
+The read operation was not successful, because either the connection was closed,
+an error occurred or action must be taken by the calling process.
+Call L<SSL_get_error(3)> with the return value B<ret> to find out the reason.
SSLv2 (deprecated) does not support a shutdown alert protocol, so it can
only be detected, whether the underlying connection was closed. It cannot
be checked, whether the closure was initiated by the peer or by something
else.
-=item E<lt>0
-
-The read operation was not successful, because either an error occurred
-or action must be taken by the calling process. Call SSL_get_error() with the
-return value B<ret> to find out the reason.
+Old documentation indicated a difference between 0 and -1, and that -1 was
+retryable.
+You should instead call SSL_get_error() to find out if it's retryable.
=back
OpenPOWER on IntegriCloud