Hi everybody,

I just wanted to point out a trap, which I encountered. I am developing an SSL 
enhancement
for our SMTP interface and I am using
OpenSSL. I start testing under Win2000 and everything worked fine. After that I tried 
it
out under NT4.0 (SP6) and the application hang up
on SSL_connect and SSL_accept. As I debugged the whole thing, I found out that the
critical line was in rand_win.c.

                while (rc == ERROR_MORE_DATA)
                        {
                        buf = realloc(buf,bufsz+8192);
                        if (!buf)
                                break;
                        bufsz += 8192;

                        length = bufsz;
                        rc = RegQueryValueEx(HKEY_PERFORMANCE_DATA, "Global",          
TRAP LINE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
                                NULL, NULL, buf, &length);
                        }

A view lines above there is a comment to use this only under WinNT. Funny it works the
opposite way for me. I removed the critical part and 
everything works fine again. I am not sure, whether this applies general to WinNT or 
just
on my computer, but I tried the application on another
NT computer, and there it also hung up.

Let me know your comments (but please reply direct, as I am not on the openssl_dev 
list).

Cheers,
Wolfgang Marczy.


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to