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 1jPXpZ-00063v-72 for pgsql-committers@arkaria.postgresql.org; Fri, 17 Apr 2020 20:43:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jPXpX-0007Vk-V8 for pgsql-committers@arkaria.postgresql.org; Fri, 17 Apr 2020 20:43:19 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jPXpX-0007TB-PV for pgsql-committers@lists.postgresql.org; Fri, 17 Apr 2020 20:43:19 +0000 Received: from smtp2.outgoing.loopia.se ([93.188.3.37]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jPXpU-0004Mh-93 for pgsql-committers@lists.postgresql.org; Fri, 17 Apr 2020 20:43:18 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id B01C22ECBDD1 for ; Fri, 17 Apr 2020 22:43:12 +0200 (CEST) Received: from s500.loopia.se (unknown [172.22.191.5]) by s807.loopia.se (Postfix) with ESMTP id 837D520F19F; Fri, 17 Apr 2020 22:43:12 +0200 (CEST) Received: from s473.loopia.se (unknown [172.22.191.6]) by s500.loopia.se (Postfix) with ESMTP id 790C51E14734; Fri, 17 Apr 2020 22:43:12 +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 s630.loopia.se ([172.22.191.5]) by s473.loopia.se (s473.loopia.se [172.22.190.13]) (amavisd-new, port 10024) with LMTP id meCXWjjP3LPc; Fri, 17 Apr 2020 22:43:12 +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 s630.loopia.se (Postfix) with ESMTPSA id F25B113ABF22; Fri, 17 Apr 2020 22:43:11 +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 openssl_tls_init_hook if building with openssl From: Daniel Gustafsson In-Reply-To: <30790.1587155539@sss.pgh.pa.us> Date: Fri, 17 Apr 2020 22:43:11 +0200 Cc: Andrew Dunstan , pgsql-committers@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <30790.1587155539@sss.pgh.pa.us> To: Tom Lane 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 22:32, Tom Lane wrote: >=20 > Andrew Dunstan writes: >> Only provide openssl_tls_init_hook if building with openssl >=20 > One or the other of these patches broke building without = --with-openssl: >=20 > fe-secure.c:435: error: expected '=3D', ',', ';', '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=