Hello, > On Mon, 2006-06-26 at 12:46 +0200, Marek Marcola wrote: > > Or resolution for this problem may be defining new data type > > "my_fd_set", replacing FD_* macros, and use this new data type in > > select() with cast to fd_set. > > The select is part of the OpenSSL implementation. I specifically avoided > the select() by going multi threaded and here I am sitting with a select > problem (I think) due to the OpenSSL library. > > I want to stay away from hacking the OpenSSL library. Sorry for misundestanding. SSL_accept() calls RAND_bytes() and RAND_pseudo_bytes() (with calls RAND_bytes() with ignorance of not seeded PRNG). If PRNG is not seeded RAND_bytes() tries to self seed using RAND_pool() - RAND_add() do not use select(). For me seems that if you properly initialize PRNG (before creating threads) this may resolve problem. I think something like: RAND_load_file("/dev/urandom", 1024); should be enough.
Best regards, -- Marek Marcola <[EMAIL PROTECTED]> ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]