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 1jPWej-0003ZL-UF for pgsql-committers@arkaria.postgresql.org; Fri, 17 Apr 2020 19:28:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jPWeh-0005i1-R3 for pgsql-committers@arkaria.postgresql.org; Fri, 17 Apr 2020 19:28:03 +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 1jPWeh-0005ga-Lk for pgsql-committers@lists.postgresql.org; Fri, 17 Apr 2020 19:28:03 +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 1jPWeb-0004ys-CL for pgsql-committers@lists.postgresql.org; Fri, 17 Apr 2020 19:28:03 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id 735832EC598F for ; Fri, 17 Apr 2020 21:27:55 +0200 (CEST) Received: from s499.loopia.se (unknown [172.22.191.5]) by s807.loopia.se (Postfix) with ESMTP id 54C283093FC9; Fri, 17 Apr 2020 21:27:55 +0200 (CEST) Received: from s474.loopia.se (unknown [172.22.191.6]) by s499.loopia.se (Postfix) with ESMTP id 4C1171CDAF36; Fri, 17 Apr 2020 21:27:55 +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 s498.loopia.se ([172.22.191.5]) by s474.loopia.se (s474.loopia.se [172.22.190.14]) (amavisd-new, port 10024) with LMTP id yHPOXrLj0uNJ; Fri, 17 Apr 2020 21:27:54 +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 s498.loopia.se (Postfix) with ESMTPSA id C3C0D4708CA; Fri, 17 Apr 2020 21:27:54 +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: Date: Fri, 17 Apr 2020 21:27:53 +0200 Cc: pgsql-committers@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <34E10ADF-C350-481E-91EB-7548F1EDA722@yesql.se> References: 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 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) 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. cheers ./daniel [0] E1BB5261-5C89-494A-841B-283DAD27A2EA@yesql.se=