Re: RAND_egd() blocking -- despite contract that states otherwise?
An alternative might be to install a handler for SIGALARM, and then
call alarm() to ensure that the blocked read returns with an EINTR?
On Sun, Nov 9, 2008 at 2:06 PM, David Schwartz <email@example.com> wrote:[color=blue]
>>> So what do you want to do if you run out of entropy?[/color][/color]
>> Fail with an error condition stating that, rather than
>> the indeterminate hang in read() that was experienced.[/color]
> I believe you need to compile with EGD support then. This will get you the
> behavior you want. EGD provides no way to tell whether there's entropy or
> not, so if you fall back to it, and it has no entropy, you will be in
> There really is no way to fix this in OpenSSL. If you make it really not
> block, it will never succeed. It is meaningless to query a daemon without
> blocking -- at some point you must wait for the daemon to reply.
> OpenSSL Project [url]http://www.openssl.org[/url]
> User Support Mailing List [email]firstname.lastname@example.org[/email]
> Automated List Manager [email]email@example.com[/email]
OpenSSL Project [url]http://www.openssl.org[/url]
User Support Mailing List [email]firstname.lastname@example.org[/email]
Automated List Manager [email]email@example.com[/email]