If you can recompile OpenSSL, try commenting out the code in rand_win.c that does this querying.
Steven -----Original Message----- From: Steven Reddie [mailto:[EMAIL PROTECTED]] Sent: Friday, 12 July 2002 2:24 PM To: [EMAIL PROTECTED] Subject: RE: Possible Bug: RAND_pseudo_bytes, NT 4.0? I think I may have seen this once due to Lotus Notes. A performance counter entry in the registry was referring to a Notes DLL that did not exist (perhaps the uninstaller didn't clean up properly) and when OpenSSL's RAND_poll() queried the performance counters there was an extremely long hang. Steven -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Matt Pauker Sent: Friday, 12 July 2002 4:53 AM To: [EMAIL PROTECTED] Subject: Possible Bug: RAND_pseudo_bytes, NT 4.0? Hi, I've encountered a possible bug with RAND_psuedo_bytes on Windows NT 4.0. While I can call it just fine directly from an EXE, attempting to call it from a DLL hangs the calling process. It's easily reproducible: SSL_library_init(); SSL_load_error_strings(); RAND_pseudo_bytes(buf, 32); I tried doing a RAND_seed but that did not help. Also, I have no problems on Windows 98/2000/XP. I will attempt to delve a little deeper into RAND_pseudo_bytes to see if I can track down exactly where it's hanging, but it's pretty dense. A brief look at rand_win.c suggests that maybe the OpenSSL libraries need to be compiled separately for NT 4.0 (they were compiled under XP) -- But in that case why would it work from an EXE and not a DLL? Any suggesstions/comments would be greatly appreciated. Thanks, Matt ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]