>> 2) The SSL_read/SSL_write API doesn't seems to support non-blocking IO.  I
>> Is it sufficient to set the underlying file descriptor for non-blocking IO
>> and just use SSL_set_fd to enable this? And if I change the properties of
>> the underlying file desc. can I just issue another SSL_set_fd to update
>> the SSL socket?

The SSL API does not have to know whether the underlying sockets (or
whatever BIOs you use) are in blocking mode or in non-blocking mode.
If an EAGAIN occurs, it is handled correctly and is reported to the
application in the SSL_get_error return value.
You should not call SSL_set_fd again.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to