<div dir="ltr">We call DH_generate_key(DH *dh) and the <span style="font-size:12.8px">RAND_poll() is called </span>ssleay_rand_bytes<div><br></div><div><br></div><div><div> <span style="white-space:pre">    </span>libeay32d.dll!RAND_poll()  Line 572<span style="white-space:pre"> </span>C</div><div> <span style="white-space:pre">   </span>libeay32d.dll!ssleay_rand_bytes(unsigned char * buf=0x03318fe0, int num=128, int pseudo=0)  Line 395<span style="white-space:pre">        </span>C</div><div> <span style="white-space:pre">   </span>libeay32d.dll!ssleay_rand_nopseudo_bytes(unsigned char * buf=0x03318fe0, int num=128)  Line 536 + 0xf bytes<span style="white-space:pre"> </span>C</div><div> <span style="white-space:pre">   </span>libeay32d.dll!RAND_bytes(unsigned char * buf=0x03318fe0, int num=128)  Line 164 + 0x10 bytes<span style="white-space:pre">        </span>C</div><div> <span style="white-space:pre">   </span>libeay32d.dll!bnrand(int pseudorand=0, bignum_st * rnd=0x03318518, int bits=1023, int top=0, int bottom=0)  Line 152 + 0xd bytes<span style="white-space:pre">    </span>C</div><div>><span style="white-space:pre"> </span>libeay32d.dll!BN_rand(bignum_st * rnd=0x03318518, int bits=1023, int top=0, int bottom=0)  Line 213 + 0x17 bytes<span style="white-space:pre">    </span>C</div><div> <span style="white-space:pre">   </span>libeay32d.dll!generate_key(dh_st * dh=0x03316a88)  Line 170 + 0x11 bytes<span style="white-space:pre">    </span>C</div><div> <span style="white-space:pre">   </span>libeay32d.dll!DH_generate_key(dh_st * dh=0x03316a88)  Line 84 + 0xf bytes<span style="white-space:pre">   </span>C</div></div><div><br></div><div>Thanks</div><div>Jason</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 5, 2017 at 3:33 PM, Jeffrey Walton <span dir="ltr"><<a href="mailto:noloader@gmail.com" target="_blank">noloader@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, Oct 5, 2017 at 2:55 PM, Jason Qian via openssl-users<br>
<<a href="mailto:openssl-users@openssl.org">openssl-users@openssl.org</a>> wrote:<br>
> Thanks Michael,<br>
><br>
>       I saw a lot of discussion for this issue on,<br>
><br>
>        <a href="https://mta.openssl.org/pipermail/openssl-dev/2015-July/002210.html" rel="noreferrer" target="_blank">https://mta.openssl.org/<wbr>pipermail/openssl-dev/2015-<wbr>July/002210.html</a><br>
><br>
>       Not sure if openSSL has a workaround or a patch ?<br>
><br>
><br>
> It hangs on :<br>
><br>
> libeay32.dll!RAND_poll() Line 523<br>
><br>
> if (heap_first(&hentry,<br>
>       hlist.th32ProcessID,<br>
>                       hlist.th32HeapID))<br>
<br>
You should avoid calls to RAND_poll altogether on Windows. Do so by<br>
explicitly seeding the random number generator yourself.<br>
<br>
Also see <a href="https://wiki.openssl.org/index.php/Random_Numbers#Windows_Issues" rel="noreferrer" target="_blank">https://wiki.openssl.org/<wbr>index.php/Random_Numbers#<wbr>Windows_Issues</a><br>
on the OpenSSL wiki.<br>
<br>
Jeff<br>
</blockquote></div><br></div>