Hi, I'm trying to add SSL support to an existing Sockets class. The class uses CAsyncSocket, and works under some conditions. I think it is a blocking/non-blocking IO problem. Anyway, when I run the program normally, I get errors in SSL_connect and SSL_accept. ERR_print_errors_fp gives no further information. If, however, I step through the program in the debugger, everyting works fine, so it's obviously a timing issue. I found the thread about setting the socket timeouts, and tried the following dispite the fact that MSDN library states SO_XXXTIMEO are not supported. int TO = 5000; result = SetSockOpt(SO_RCVTIMEO, &TO, sizeof(TO), SOL_SOCKET); result = SetSockOpt(SO_SNDTIMEO, &TO, sizeof(TO), SOL_SOCKET); No errors are returned on these Sets, but it doesn't solve the problem. I read somewhere that OpenSSL can be run in blocking or non-blocking mode, but have been unable to find out how to change this option. Thanks, Gene ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
