From: Michael Paquier <michael@paquier.xyz>
To: Daniel Gustafsson <daniel@yesql.se>
Cc: 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: Sat, 18 Apr 2020 21:44:52 +0900
Message-ID: <20200418124452.GF350229@paquier.xyz> (raw)
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>
On Fri, Apr 17, 2020 at 10:43:11PM +0200, Daniel Gustafsson wrote:
> 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.
I was just looking at the git history and bumped into this thread. I
think Andrew got it right to revert 9e24109 with 6741cfa: these
routines should be declared and return dummy results for non-SSL
builds or applications are going to have a hard time maintaining
compatibility with libpq depending on what they link to if they get to
call those SSL new routines.
PS: Thanks for f342d7a.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
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: michael@paquier.xyz, 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: <20200418124452.GF350229@paquier.xyz>
References: <E1jPX9g-00024a-BR@gemulon.postgresql.org> <30790.1587155539@sss.pgh.pa.us> <D12D03F7-211F-4585-B5F0-C5FF4CF6F61E@yesql.se> <20200418124452.GF350229@paquier.xyz>
* 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