Clarify return value of SSL_connect() and SSL_accept() in case of the
WANT_READ and WANT_WRITE conditions.
This commit is contained in:
parent
16c9148220
commit
fe0444b17e
@ -28,7 +28,8 @@ should be called again.
|
|||||||
|
|
||||||
If the underlying BIO is B<non-blocking>, SSL_accept() will also return
|
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()
|
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
|
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
|
B<SSL_ERROR_WANT_WRITE>. The calling process then must repeat the call after
|
||||||
taking appropriate action to satisfy the needs of SSL_accept().
|
taking appropriate action to satisfy the needs of SSL_accept().
|
||||||
|
@ -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
|
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()
|
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
|
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
|
B<SSL_ERROR_WANT_WRITE>. The calling process then must repeat the call after
|
||||||
taking appropriate action to satisfy the needs of SSL_connect().
|
taking appropriate action to satisfy the needs of SSL_connect().
|
||||||
|
Loading…
x
Reference in New Issue
Block a user