Dr. Stephen Henson wrote:
On Tue, Nov 08, 2005, Chong Peng wrote:
hello, does anybody here know that is there an api similar
to "select" in the regular socket socket api for open ssl?
No there isn't.
This would have to call the OSes equivalent of "select" anyway. There are
several variations in use each with different properties used in different
circumstances depending on the set of events you wish to monitor.
Steve.
I wrote a SSL_select() once upon a time (actually a whole SSL wrapper
interface because I don't like OpenSSL's interface)...it involved some
very evil code because I was working with asynchronous sockets. It
wasn't super performance-friendly, but it worked and it auto-managed the
read/write issues involved with asynchronous SSL sockets.
To write a SSL_select(), you need to wrap up _all_ of the OpenSSL calls
you use into your own functions and create a structure/class to track
the information with. The reason for this is because you need to track
the responses from the OpenSSL library for the other calls so your
SSL_select() works properly. I can't provide any more hints than this -
the library in question is proprietary code. What you want is doable,
but the code is evil.
--
Thomas Hruska
Shining Light Productions
Home of BMP2AVI, Nuclear Vision, ProtoNova, and Win32 OpenSSL.
http://www.slproweb.com/
Ask me about discounts on any Shining Light Productions product!
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [email protected]
Automated List Manager [EMAIL PROTECTED]