the EGD (Entropy Gathering Daemon) or PRNGD (pseudorandom number
generator daemon) socket and seed OpenSSL's RNG.
this is necessary on solaris and other systems which lack /dev/urandom.
$Log$
+ Revision 590.144 2002/03/12 04:30:52 nbryant
+ if a filesystem node exists at /var/run/egd-pool, try to connect to it as
+ the EGD (Entropy Gathering Daemon) or PRNGD (pseudorandom number
+ generator daemon) socket and seed OpenSSL's RNG.
+
+ this is necessary on solaris and other systems which lack /dev/urandom.
+
Revision 590.143 2002/03/12 03:43:26 nbryant
squished the last remaining calls to sprintf
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
+
#if SSLEAY_VERSION_NUMBER >= 0x0922
SSL_set_session_id_context(ssl, "Citadel/UX SID", 14);
#endif
+
+ if (!access("/var/run/egd-pool", F_OK))
+ RAND_egd("/var/run/egd-pool");
+
if (!RAND_status()) {
err_printf("PRNG not properly seeded\n");
return 0;
{
SSL_METHOD *ssl_method;
DH *dh;
+
+ if (!access("/var/run/egd-pool", F_OK))
+ RAND_egd("/var/run/egd-pool");
if (!RAND_status()) {
lprintf(2, "PRNG not adequately seeded, won't do SSL/TLS\n");