psql+openssl+uniware7
От | Olivier PRENANT |
---|---|
Тема | psql+openssl+uniware7 |
Дата | |
Msg-id | Pine.UW2.4.21.0106212215320.21995-100000@server.pyrenet.fr обсуждение исходный текст |
Ответы |
Re: psql+openssl+uniware7
|
Список | 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 по дате отправления: