"Scott Bolton" <[EMAIL PROTECTED]> writes: > I'm a little new to openssl, but not to sockets. I am working on a program > that is not of the standard request/response type. I need to be able to > write to a client at anytime, and monitor the session/socket to handle > anything coming from the client. With SSL, as I understand it, these > operations cannot occur simultanously via separate, uncoordinated, threads. > > How can I determine that an SSL_read should be done? I realize it might not > complete immediately (multiple packets, handshaking, etc). I just don't want > to occupy the socket until necessary, so I can SSL_write if needed. Can I > select on the raw socket descriptor?
Yes, but it's tricky. There's extensive coverage of this topic, complete with source code, in my article: "An Introduction to OpenSSL Programming" at: http://www.rtfm.com/openssl-examples -Ekr -- [Eric Rescorla [EMAIL PROTECTED]] http://www.rtfm.com/ ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]