Re: More SSL questions..

Поиск
Список
Период
Сортировка
От T.J.
Тема Re: More SSL questions..
Дата
Msg-id 41DAD4BA.9090401@phreaker.net
обсуждение исходный текст
Ответ на Re: More SSL questions..  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: More SSL questions..  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
After some more screwing around, I'm not entirely certain windows is
even trying to open my certs. After repeatedly trying to connect it
seemed like I was getting an equal amount of the sslv3 and SSL SYSCALL
errors, whether or not the certs were (where I thought?) windows was
looking for them..

Which leads me to my next question; that function client_cert_cb, does
it ever get executed on windows? :)

I mean, that's the function with the useful error messages (that helped
me on linux), is it not? And the error messages on windows are anything
but useful...and at the beginning of that function there is a:

#ifdef WIN32
    return 0;
#else
    ... (function)
    return 1;
#endif

Tom Lane wrote:

>"T.J." <tjtoocool@phreaker.net> writes:
>
>
>>Not to my knowledge. By the way, for future reference on windows it
>>looks for the cert/key in the linux equivalent of
>>`pwd`/.postgresql/postgresql.crt/key, instead of
>>$HOME/.postgresql/postgresql.crt/key.
>>
>>
>
>Actually, it asks getpwuid() for the user's home directory,
>rather than looking for an environment variable named HOME.
>See client_cert_cb() in fe-secure.c.
>
>This could probably be documented better, but I'm not sure how.
>The average user is even less likely to be familiar with getpwuid()
>than $HOME, so it doesn't seem like referencing that library function
>is much of an improvement.
>
>            regards, tom lane
>
>
>

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: More SSL questions..
Следующее
От: Michael Fuhr
Дата:
Сообщение: pg_dump --oids fails when default_with_oids = off