Turns out it was a problem with rand_win.c after all, involving a performance query from the registry. Commented it out and the problem went away.
Sorry for answering my own question, Matt On Thu, 11 Jul 2002, Matt Pauker wrote: > 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]