summaryrefslogtreecommitdiffstats
path: root/doc/ssl
diff options
context:
space:
mode:
authorLutz Jänicke <jaenicke@openssl.org>2003-06-03 09:59:44 +0000
committerLutz Jänicke <jaenicke@openssl.org>2003-06-03 09:59:44 +0000
commitdb01746978cbc383a55b58e8f9441452a0cb5964 (patch)
treeffa7c26743e941c4e685a97702caf1ee3715c095 /doc/ssl
parent63b815583b467b8ca49ded29776f50a2f7906f00 (diff)
Clarify return value of SSL_connect() and SSL_accept() in case of the
WANT_READ and WANT_WRITE conditions.
Diffstat (limited to 'doc/ssl')
-rw-r--r--doc/ssl/SSL_accept.pod3
-rw-r--r--doc/ssl/SSL_connect.pod3
2 files changed, 4 insertions, 2 deletions
diff --git a/doc/ssl/SSL_accept.pod b/doc/ssl/SSL_accept.pod
index a673edba85..cc724c0d56 100644
--- a/doc/ssl/SSL_accept.pod
+++ b/doc/ssl/SSL_accept.pod
@@ -28,7 +28,8 @@ should be called again.
If the underlying BIO is B<non-blocking>, SSL_accept() will also return
when the underlying BIO could not satisfy the needs of SSL_accept()
-to continue the handshake. In this case a call to SSL_get_error() with the
+to continue the handshake, indicating the problem by the return value -1.
+In this case a call to SSL_get_error() with the
return value of SSL_accept() will yield B<SSL_ERROR_WANT_READ> or
B<SSL_ERROR_WANT_WRITE>. The calling process then must repeat the call after
taking appropriate action to satisfy the needs of SSL_accept().
diff --git a/doc/ssl/SSL_connect.pod b/doc/ssl/SSL_connect.pod
index 8426310c0d..cc56ebb75f 100644
--- a/doc/ssl/SSL_connect.pod
+++ b/doc/ssl/SSL_connect.pod
@@ -25,7 +25,8 @@ handshake has been finished or an error occurred.
If the underlying BIO is B<non-blocking>, SSL_connect() will also return
when the underlying BIO could not satisfy the needs of SSL_connect()
-to continue the handshake. In this case a call to SSL_get_error() with the
+to continue the handshake, indicating the problem by the return value -1.
+In this case a call to SSL_get_error() with the
return value of SSL_connect() will yield B<SSL_ERROR_WANT_READ> or
B<SSL_ERROR_WANT_WRITE>. The calling process then must repeat the call after
taking appropriate action to satisfy the needs of SSL_connect().