Re: SSL_renegotiate and SSL_do_handshake

2007-11-29 Thread Kyle Hamilton
Read will fail if write must be done. Write will fail if read must be done. The bug is that you're not checking for the SSL_ERROR_WANT_READ or SSL_ERROR_WANT_WRITE required error statuses -- if you get either of those, you just need to retry the operation again (i.e., treat just like EAGAIN in PO

RE: SSL_renegotiate and SSL_do_handshake

2007-11-29 Thread k b
Ok, so it's kindof working now. kinda because after a do_handshake, any read on the server server return -1, but if you ignore this one and continue, subsequent read works. And data transfer works if back to normal with the new session. Any reason why the read would fail ? Are there any sett