Re: PQinitSSL broken in some use casesf

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: PQinitSSL broken in some use casesf
Дата
Msg-id 4991A566.6000905@hagander.net
обсуждение исходный текст
Ответ на Re: PQinitSSL broken in some use casesf  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane wrote:
> Robert Haas <robertmhaas@gmail.com> writes:
>>> We could do that, I guess. However, if an application passes this in to
>>> an old version of libpq, there is no way to know that it didn't know
>>> about it.
> 
>> Well, you could create PQinitSSLExtended, but, as you say, the use
>> case is pretty narrow...
> 
>> It would help if there were a PQgetLibraryVersion() function.
> 
> Help how?  There is nothing an app can do to work around the problem
> AFAICS.  Or if there were, we should just document it and not change
> the code --- the use case for this is evidently too narrow to justify
> complicating libpq's API even more.

Sure, there is a way to work around it in this case. By manually
initializing ssl+crypto even though you only need crypto, and then tell
libpq you have taken care of the initialization.

//Magnus



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: PQinitSSL broken in some use casesf
Следующее
От: Robert Haas
Дата:
Сообщение: Re: PQinitSSL broken in some use casesf