psql+openssl+uniware7 - Mailing list pgsql-hackers

From Olivier PRENANT
Subject psql+openssl+uniware7
Date
Msg-id Pine.UW2.4.21.0106212215320.21995-100000@server.pyrenet.fr
Whole thread Raw
Responses Re: psql+openssl+uniware7  (Peter Eisentraut <peter_e@gmx.net>)
List 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 EDGRAND_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@pyrenet.fr
------------------------------------------------------------------------------
Make your life a dream, make your dream a reality. (St Exupery)



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: COPY vs. INSERT
Next
From: Tom Lane
Date:
Subject: Good name for new lock type for VACUUM?