From: Daniel Gustafsson <daniel@yesql.se>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andrew Dunstan <andrew@dunslane.net>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Only provide openssl_tls_init_hook if building with openssl
Date: Fri, 17 Apr 2020 22:43:11 +0200
Message-ID: <D12D03F7-211F-4585-B5F0-C5FF4CF6F61E@yesql.se> (raw)
In-Reply-To: <30790.1587155539@sss.pgh.pa.us>
References: <E1jPX9g-00024a-BR@gemulon.postgresql.org>
<30790.1587155539@sss.pgh.pa.us>
> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: daniel@yesql.se, tgl@sss.pgh.pa.us, andrew@dunslane.net
Subject: Re: pgsql: Only provide openssl_tls_init_hook if building with openssl
In-Reply-To: <D12D03F7-211F-4585-B5F0-C5FF4CF6F61E@yesql.se>
References: <E1jPX9g-00024a-BR@gemulon.postgresql.org> <30790.1587155539@sss.pgh.pa.us> <D12D03F7-211F-4585-B5F0-C5FF4CF6F61E@yesql.se>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox