Re: [PATCH] crypto/rand/rand_unix.c

2006-06-26 Thread Richard Levitte - VMS Whacker
In message <[EMAIL PROTECTED]> on Tue, 27 Jun 2006 07:53:06 +0200 (CEST), Richard Levitte - VMS Whacker <[EMAIL PROTECTED]> said: richard> OK, I'm applying it. Hmm, someone beat me to it, at least on 0.9.9-dev... :-) Cheers, RIchard - Please consider sponsoring my work on free software. S

Re: [PATCH] crypto/rand/rand_unix.c

2006-06-26 Thread Richard Levitte - VMS Whacker
OK, I'm applying it. I made one little change though, assuming the condition in the following part was meant to be 'defined(FD_SETSIZE)'...: > +#else > + /* lets use select() */ [...] > + #if defined(OPENSSL_SYS_LINUX) > + #define IOWAIT_FD_SETSIZE (FD_SETSIZE) > + #else > + /* fallback method

Re: [PATCH] crypto/rand/rand_unix.c

2006-06-26 Thread Darryl Miles
Ignore the last patch, this corrects the error in the sample calculation (for non-linux platforms). "sizeof(fd_set)/8" into "sizeof(fd_set)*8" Darryl Miles wrote: + * but that value is a tad dull on modern hardware. So + * I ended up trying sizeof(fd_set)*8 which should be + * clos

[PATCH] crypto/rand/rand_unix.c

2006-06-26 Thread Darryl Miles
Please review this patch for inclusion in OpenSSL. Following the recent thread in openssl-users here is a patch allow poll() interface to be used instead of select() in rand_unix.c. This patch is necessary for big-fd users of openssl, as the libc implementation of FD_SET() may inadvertently