Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jPXYV-0005Tg-O2 for pgsql-committers@arkaria.postgresql.org; Fri, 17 Apr 2020 20:25:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jPXYU-00056I-GI for pgsql-committers@arkaria.postgresql.org; Fri, 17 Apr 2020 20:25:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jPXVT-0002FT-HJ for pgsql-committers@lists.postgresql.org; Fri, 17 Apr 2020 20:22:35 +0000 Received: from smtp2.outgoing.loopia.se ([93.188.3.37]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jPXVR-0005Ns-8O for pgsql-committers@lists.postgresql.org; Fri, 17 Apr 2020 20:22:34 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id AA9F02EC4DB2 for ; Fri, 17 Apr 2020 22:22:30 +0200 (CEST) Received: from s645.loopia.se (unknown [172.22.191.6]) by s807.loopia.se (Postfix) with ESMTP id 8BB5420896A; Fri, 17 Apr 2020 22:22:30 +0200 (CEST) Received: from s474.loopia.se (unknown [172.22.191.6]) by s645.loopia.se (Postfix) with ESMTP id 801C0156E58E; Fri, 17 Apr 2020 22:22:30 +0200 (CEST) X-Virus-Scanned: amavisd-new at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -1 X-Spam-Level: X-Spam-Status: No, score=-1 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1] autolearn=disabled Received: from s499.loopia.se ([172.22.191.5]) by s474.loopia.se (s474.loopia.se [172.22.190.14]) (amavisd-new, port 10024) with LMTP id 7t-M6ktH0QTx; Fri, 17 Apr 2020 22:22:30 +0200 (CEST) X-Loopia-Auth: user X-Loopia-User: daniel@yesql.se X-Loopia-Originating-IP: 89.255.232.193 Received: from [192.168.72.43] (customer-89-255-232-193.stosn.net [89.255.232.193]) (Authenticated sender: daniel@yesql.se) by s499.loopia.se (Postfix) with ESMTPSA id 07DA41CDAF30; Fri, 17 Apr 2020 22:22:29 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: pgsql: Only provide new libpq sslpasskey hook for openssl-enabled build From: Daniel Gustafsson In-Reply-To: <802aad18-cab1-a98b-879e-2c111d23efb4@2ndQuadrant.com> Date: Fri, 17 Apr 2020 22:22:29 +0200 Cc: Andrew Dunstan , pgsql-committers@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <0E1FF8E3-5A16-481C-9261-9347039DCEB3@yesql.se> References: <34E10ADF-C350-481E-91EB-7548F1EDA722@yesql.se> <802aad18-cab1-a98b-879e-2c111d23efb4@2ndQuadrant.com> To: Andrew Dunstan X-Mailer: Apple Mail (2.3445.104.11) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On 17 Apr 2020, at 21:46, Andrew Dunstan = wrote: >=20 > On 4/17/20 3:27 PM, Daniel Gustafsson wrote: >>> On 17 Apr 2020, at 20:19, Andrew Dunstan = wrote: >>>=20 >>> Only provide new libpq sslpasskey hook for openssl-enabled builds >>>=20 >>> In commit 4dc6355210 I neglected to put #ifdef USE_OPENSSL around = the >>> declarations of the new items. This is remedied here. >> This wasn't really the problem I reported though. As per my patch = [0] in the >> email, the issue is with openssl_tls_init_hook in = src/include/libpq/libpq-be.h >> requiring an OpenSSL specific SSL_CTX parameter, thus breaking = compilation for >> other TLS backends. The name also makes it somewhat backend specific = =3D) >>=20 >> PQgetSSLKeyPassHook is written generic enough that it could make = sense for >> other backends too, but for now I think we can keep the guards = introduced in >> this commit. >=20 > Oh, *sigh* brainfade. >=20 > Will fix. Thanks, f342d7ad03e61a1cea0339cf0c5aea0d01c3b43e was more what I had in = mind. cheers ./daniel=