Re: pgsql: Only provide openssl_tls_init_hook if building withopenssl

Поиск
Список
Период
Сортировка
От Daniel Gustafsson
Тема Re: pgsql: Only provide openssl_tls_init_hook if building withopenssl
Дата
Msg-id D12D03F7-211F-4585-B5F0-C5FF4CF6F61E@yesql.se
обсуждение исходный текст
Ответ на Re: pgsql: Only provide openssl_tls_init_hook if building with openssl  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: pgsql: Only provide openssl_tls_init_hook if building withopenssl  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-committers
> On 17 Apr 2020, at 22:32, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> Andrew Dunstan <andrew@dunslane.net> writes:
>> Only provide openssl_tls_init_hook if building with openssl
>
> One or the other of these patches broke building without --with-openssl:
>
> fe-secure.c:435: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PQgetSSLKeyPassHook'
> fe-secure.c:441: error: expected ')' before 'hook'
> fe-secure.c:447: warning: no previous prototype for 'PQdefaultSSLKeyPassHook'
> make[3]: *** [fe-secure.o] Error 1

fe-secure.c provides dummy implementations for non-SSL builds, and have a dummy
PQsslKeyPassHook_type implementation there.  So either the dummy needs to be
removed if we want this hook OpenSSL specific as well, or the USE_OPENSSL
guards from 9e24109f1a4e4d8d1d keeping them only for openssl_tls_init_hook.

cheers ./daniel


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Only provide openssl_tls_init_hook if building with openssl
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: pgsql: Only provide openssl_tls_init_hook if building withopenssl