From: | Olivier PRENANT <ohp(at)pyrenet(dot)fr> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Cc: | Larry Rosenman <ler(at)lerctr(dot)org> |
Subject: | psql+openssl+uniware7 |
Date: | 2001-06-21 20:32:13 |
Message-ID: | Pine.UW2.4.21.0106212215320.21995-100000@server.pyrenet.fr |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi all,
While testing postgresql with openssl on Unixware, I had this problem that
psql alaways replied "PRGN not seeded".
That because psql does'nt not seed it in anyway. That's all right on
systems that have /dev/urandom (or whatever is ok for openssl)
The hack is simple: install prngd then add -DEGD='"/var/run/prngd-pool"'
to
CFLAGS in src/makefiles/unixware'CFLAGS
then add
#ifdef EDG
RAND_egd(EGD);
#endif
if src/interfaces/libpq/fe-connect.c near line 965 (#ifdef USE_SSL)
This done, openssl is doing all right.
I'm sorry I don't have a clue how to make a clean patch. I guess
real patch would involve configure testing for /dev/?random then all
"standard places" according to openssl for prng sockets then isse
eventually RAND_egd.
Thanks you for your attention.
--
Olivier PRENANT Tel: +33-5-61-50-97-00 (Work)
Quartier d'Harraud Turrou +33-5-61-50-97-01 (Fax)
31190 AUTERIVE +33-6-07-63-80-64 (GSM)
FRANCE Email: ohp(at)pyrenet(dot)fr
------------------------------------------------------------------------------
Make your life a dream, make your dream a reality. (St Exupery)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2001-06-21 21:15:25 | Good name for new lock type for VACUUM? |
Previous Message | Tom Lane | 2001-06-21 20:28:51 | Re: COPY vs. INSERT |