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 1jPmqN-000480-D6 for pgsql-committers@arkaria.postgresql.org; Sat, 18 Apr 2020 12:45:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jPmqK-0002lJ-Pv for pgsql-committers@arkaria.postgresql.org; Sat, 18 Apr 2020 12:45:08 +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 1jPmqI-0002fK-GL for pgsql-committers@lists.postgresql.org; Sat, 18 Apr 2020 12:45:08 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jPmqE-0005os-2f for pgsql-committers@lists.postgresql.org; Sat, 18 Apr 2020 12:45:05 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 1E390667; Sat, 18 Apr 2020 08:44:58 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sat, 18 Apr 2020 08:44:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=YAtIhTGfY1quZqjFBs3WUueFruV 4a4avmguf0ZFHb9c=; b=WHI8+KXSzFN/LbgS8LAt9wQIjn9x5DTjh9xQrIQcOes ZiTlwOBb/DxYY5RkRxLNYuwVXODkRarbzJQXXvfOvsN7sxEFRWyGrfW2GzsxRtx3 fhLIpzS1Bx7bUDOvJmFUeA7Pn9fUWfcqYM6EqDR3VWu/bzP1jihj4IQ9e37YhU6R ynT66YVG2f0fkOeq90+hlo+NkpLYTaE82eIq3ZelBH9HxsRvm5v2VMU5cs54EJ56 /CPpaFOYfi+atVN8gmAgtliHkdI53EhTkgErgYfa0W44T0nzZjjJeHY0/pUfvgvW PoeXKsLTwrbpksmf/xSZ1i6a1pEhe0ZCgMKbf3R1Bjg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=YAtIhT GfY1quZqjFBs3WUueFruV4a4avmguf0ZFHb9c=; b=cZg7JRflg3+wfrZzBooY7P IjjbfaAQjnlJU3kyIL84bTD+iJpqMZhHL/HDtLVFnAn7Lond/dpTsLnV5Fe8Y9t+ tbl6zUZaFc98PnRStwIsric5MMELJS5rVvVxbOsGPXhsZ2WjHzAOzG+r/WsVsbms vquStSMLg8xkHX08bibVLhGD6KL2T2AeiBTWTZ0q1z94TaCg38FjiB/uqj1EO0/E loySy99aU5JEmiWWdqFUD0kCAy2s1A0TnX0HqwtsT3keZ+Xx2BQqbj49dZ/D7C/o +fYioo5sLssj4jkCYUFwueF6S4TMLlqgdXRiS1FC2Gf2fIhahS/ydXEqI2xAmcnw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrfeelgdehkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecukfhppeduuddurddutddvrddukedtrddukeehnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesph grqhhuihgvrhdrgiihii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 64454306005E; Sat, 18 Apr 2020 08:44:55 -0400 (EDT) Date: Sat, 18 Apr 2020 21:44:52 +0900 From: Michael Paquier To: Daniel Gustafsson Cc: Tom Lane , Andrew Dunstan , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Only provide openssl_tls_init_hook if building with openssl Message-ID: <20200418124452.GF350229@paquier.xyz> References: <30790.1587155539@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="PW0Eas8rCkcu1VkF" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --PW0Eas8rCkcu1VkF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --PW0Eas8rCkcu1VkF Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl6a9kQACgkQnvQgOdby QH0eSQ/9EuIjK3p5XOv6aopL9O3ovEIpmFSz/wyIkOVDgrqsLw6SOGwhkr3L3LrX lKSsKfi3yEtJPogL1PZEJWfx7lvrUjlMyq2ApKgQQES7WYCaQ5OtmtpUwSxbyom8 dBkUXCK504CB/aGX5x15GezuCZTZybqAbu7FWMm8ZpRAOiENMdN6o1RyWcIE0tHA COhuxRFOzoc3RQ0YCojLpGByXKVb7jV7nk1uUnnXB11ioMjN5f+ZXpDn6SuwRJzM O7bpS49yGTmBpF1KY4UHR7cioJrVQg8aZIcNlTTIi8y513iWvCH45WLjeqZf8b6m 0ckzBcP3zn/Yj2OT7fxLCa93xsFAAyF+f9kxR0gzcAbYYJbxby2jpG8LNy0h2yVg d42HGDvQ9+1BmLrSgrchnwLLexbH2nHZmbBKZsIVlTBkZKobaLGJ8nVOpoN9DbeZ bicYucrQvzkTr5GI2X1IwAZk/ezs2tTafsdWMCupq8jeYa8tPD2cJ9frv7+POs5+ frdardWMy1MNv1r8a0tXGCtAXF4US+ftnFiVwXrVVe0cbQj91bPTlJ91S3icUBcU QhezcNOFpDtBHNYtfhmoVHKFFDR3frKnYD+YiCK0xauNMNdYQLttqRRGo05BDKO9 Sghe/LqQumk/+OZgQZxwhu2GgxbTsPRxXjBwyeqhcJ/gfB/rft4= =vVt8 -----END PGP SIGNATURE----- --PW0Eas8rCkcu1VkF--