From: Lutz Jänicke Date: Tue, 3 Jun 2003 09:59:10 +0000 (+0000) Subject: Clarify return value of SSL_connect() and SSL_accept() in case of the X-Git-Tag: OpenSSL_0_9_7c~89 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fe0444b17eb531103ed8873c4da409d05b00a4f7;p=oweals%2Fopenssl.git Clarify return value of SSL_connect() and SSL_accept() in case of the WANT_READ and WANT_WRITE conditions. --- 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, 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 or B. 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, 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 or B. The calling process then must repeat the call after taking appropriate action to satisfy the needs of SSL_connect().