There's a deadlock when ssleay_rand_bytes is called the first time, since
authorRichard Levitte <levitte@openssl.org>
Wed, 26 Jul 2000 08:32:00 +0000 (08:32 +0000)
committerRichard Levitte <levitte@openssl.org>
Wed, 26 Jul 2000 08:32:00 +0000 (08:32 +0000)
commita4125514f5eb538848622d6c3ae04a3d38fddf91
tree67632d4dfc198182dc05fe5fb0b711f11377d453
parent033d001e907f4ca7f9a3876e6b1033dec6d7cb1b
There's a deadlock when ssleay_rand_bytes is called the first time, since
it wants to stir the pool using ssleay_rand_add.  This fix provides the
possibility to call ssleay_rand_add inside a locked state by simply telling
it not to do any locking through a static variable.  This isn't the most
elegant way one could do this, but it does retain thread safety during the
stirring process.
crypto/rand/md_rand.c