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 1kfhjS-0000oV-9d for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Nov 2020 11:04:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kfhjR-0004sI-8H for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Nov 2020 11:04:05 +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 1kfhjP-0004qj-G0 for pgsql-hackers@lists.postgresql.org; Thu, 19 Nov 2020 11:04:05 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kfhjN-00036J-0R for pgsql-hackers@lists.postgresql.org; Thu, 19 Nov 2020 11:04:02 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 02216E91; Thu, 19 Nov 2020 06:03:58 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Thu, 19 Nov 2020 06:03:59 -0500 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=fm3; bh=GochI9nyoKYV93Erq/4qsyDknud s6mfuDCF/rU3SnVI=; b=s3+hgMRWLhsNIRjiDaFMrDPUZqdeTQ/zD3H5oAZn3PE n2Yo9xhUOEgdfsAMnTFXy2QDAUeeduvQIWd5ekt7E19egyT3u6f/DRx5TWB1TiAI kWm7Psvj+bZC1ib1ZWyqKAQCVlg768j5djkt67grfQU7WPxY9vjQWvCLrKkKojS8 83unj6g123+hS1G4+bthYFzyzmYZGvin7iYjwUg9ZZFGXeVOVDh9sLNloJwJGtfb THIDG+WdWm5D88cN6rgDEDqy1cBpleS/94jafqIPA3V0EVc4GkSn5iP8A1qTQD7W B4GDNe/ZpYst6triLw8v0Z0fOgHEMrC7WtJo4URJ9ig== 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=fm1; bh=GochI9 nyoKYV93Erq/4qsyDknuds6mfuDCF/rU3SnVI=; b=A1gSCvCFMu2NawHP5IgqYc AL+Vg0gq0wdkC2kHhHZxgEvPkTXCq/uoy0cOxLvjQq0aa8P7AOUAwl/1lYLJt6uC ArazdyHKkCTxNh9XLngIDwYF35zP8VenJPeV4i7hNWfmmS9h/HNnFivTpw9UN6Oj LD1KbVz9ZLVdJiiavBIYD/Ukvl+I2EyOk5ApRgP2f9rhkvUmhRgseIe21aPmuK34 85J2ISkufaRA5T9z+nkr7pQRyXy6npJAIHOHOjEnIZL4JoWiTP4gVjCER0HSmblH lixL0PIEAovc2clJNPw0hKTz1uVmpH5XHzwvN/eogT2cET/5iEicLi3A47aBY1jQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudefjedgvdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpedvgeduuefhtdeuleettdevjeeh heeiveeuieegleetgeeljeelieeuieehgeevhfenucfkphepudduuddruddtvddrudektd drudekheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhm pehmihgthhgrvghlsehprghquhhivghrrdighiii 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 808923064AA7; Thu, 19 Nov 2020 06:03:56 -0500 (EST) Date: Thu, 19 Nov 2020 20:03:48 +0900 From: Michael Paquier To: Magnus Hagander Cc: Daniel Gustafsson , Tom Lane , Postgres hackers Subject: Re: Move OpenSSL random under USE_OPENSSL_RANDOM Message-ID: <20201119110348.GG26172@paquier.xyz> References: <9C83EC17-2D70-4449-A7C0-FE090D38AE5A@yesql.se> <757056.1605539160@sss.pgh.pa.us> <835E868F-66A1-42BC-8A50-D19B57BA67A7@yesql.se> <20201118013159.GH19692@paquier.xyz> <046888F1-FCBC-4685-9660-A7BCA65A8F44@yesql.se> <20201118085436.GM19692@paquier.xyz> <168426A3-D05C-4B4A-9E64-1DC7AC4DEC67@yesql.se> <20201119033433.GE26172@paquier.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="kHRd/tpU31Zn62xO" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --kHRd/tpU31Zn62xO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Nov 19, 2020 at 11:00:40AM +0100, Magnus Hagander wrote: > I'm thinking the code might get a lot cleaner if we just make a single > set of ifdefs, even if that means repeating the function header. In > theory we could put them in different *.c files as well, but that > seems overkill given how tiny they are. If you reorganize the code this way, I think that make coverage (genhtml mainly) would complain because the same function is defined multiple times. I have fallen in this trap recently, with 2771fcee. -- Michael --kHRd/tpU31Zn62xO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl+2URQACgkQnvQgOdby QH0JsQ//bGJp6usJyl3f0CZjCgV4d9jz5/dgrPpEvij2jGSx3zAx/ChHxRkqy8zm fFlZJhqc5OxDWo6cg4YcW6RbPXmesct0LwFr95yCK/pEa8VQVnfh30KzhuVmrmaf wUhigN5bXNuOS+1vxOuTGzRttvCXVU5Qx6haSNGA0Qz8XRSNlSnhHFBrH/E/B9Wp 4lA7tNJjUyOxtXETRSsddOvJ37bRNlHlwVBe8r0S4kPE/sjK5maU+5CHJGqV9H2T rCZEdJ5he9EjMziGszqy8DZJg4Nbvm4L2chM8yxVLHH8oKVoFaJksTw5LwuVGwI2 OmSJqqeJtE4eO9q5IUiSOes9TcbFpioQKeKu/hbJFpRyG9O8c2qIW4kvz1rtglyR tdCNSerxK37uyaIYNOa7rsMSU2kL0HWcjWI8BpYEpcAO4F7iL5AqCC4uZDX5k3Mr h4aUz9M9jMRCEm1seRxBk5+NejW6kvDIMQ+hKYGnGaE85xlFWXHYLpIFI1dlxF90 9ELKfgWn+5IlEdtYjP+rox/06Lu0cxWlYJIxjJ45yYh8ULWnRCNb2VtVbfcaSKOL IquExFDv8eiZ6VJq+CrXyx9WDQ7sPVkLDV0ITCYvU1DSvrvbWR4ebV3WRhNCyBV7 X8XJVjc4RqtZjePT0KlQYhp7dg5c+RcRQsk7Uv2yjgqvIEgSqAU= =o8hu -----END PGP SIGNATURE----- --kHRd/tpU31Zn62xO--