Here's what I want to do:
select() on the underlying socket.
IF select() says data is available to be read,
let OpenSSL "manage processing that data but not block even if the
socket is blocking".
Check to see if SSL_read() will succeed instantly by calling SSL_pending().
IF SSL_pending() returns a value > 0, call SSL_read().
What I want to know is how do I tell OpenSSL that it is okay to do some
processing of socket data but not block even with blocking sockets?
According to the docs, SSL_peek() seems like it is identical to
SSL_read() except it doesn't remove data from the queue. That would
mean it also blocks...but the documentation doesn't say that explicitly.
The documentation on SSL_pending() is even more vague.
--
Thomas Hruska
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager [EMAIL PROTECTED]