Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iDLme-0003Q6-C1 for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Sep 2019 04:53:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iDLmc-0000TE-Fm for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Sep 2019 04:53:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iDLma-0000SW-Pv for pgsql-hackers@lists.postgresql.org; Thu, 26 Sep 2019 04:53:38 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iDLmO-0004XC-Jh for pgsql-hackers@lists.postgresql.org; Thu, 26 Sep 2019 04:53:35 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id B7BEE21ADD; Thu, 26 Sep 2019 00:53:21 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 26 Sep 2019 00:53:21 -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=fm2; bh=bNpxNJMZzN5fgBcCXbYf1U/V0FJ bKBtuHdOMdJMMToA=; b=iVTq/4K1qrA9TI0wxHrR2NN0xS0wPZKD3uvO302FFje IHObQSXe7bgxVfPz49UnUSKNzpOBMqMOmvG0ki7sLqA+3vgKxXUZpZVItsLCr1+q 01/S42it4NBhK2sRiI3IBXe6N6AU7oGGQ1S2bigdQTAVGnLffItRBI9h7tUC1KKB DmF+OLhAhfn8KMlb7+X0Df1wZQkwI6D3UBmeYE+oBtaRT6FtmZ5J3phmRJb22OAW bP8KOEMgl7YvVQyGTMfs6zVc3R0wxKCI70g0EACPmwgkdSdahnfzNJdwW36rIhjq vY+MP0N/cqprvx+3ThnQwbrtK4eMHhBSfH5W46SzpRg== 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=fm3; bh=bNpxNJ MZzN5fgBcCXbYf1U/V0FJbKBtuHdOMdJMMToA=; b=WD74J5/ks8NJBxkTZa1Wu2 e52ErWN4OTEjCBbEho3YM5LJT7o+P87D4vkI6WPhW7phZDQKQ5uL5n2E+GY/HcN0 MPkDd2O0b0kFfdd4DzI7/Dr6eqKOoevYOishRvzJlAw0w8wVKJ0QXvd5FuDQpynm eFJaqvVkv7zDivSPPBhiM6PCkIS8SMh7+9eKzaNzmazFXqrEgyzDY4ai91q1oAfk 0SHeLtYBbyEgSp00jeHDh0RJIubAAPVUOWR3U1UQ+Ws69o2eg6bOhecZJVqQ488M b3KoFJKEPLlHzsxGiTD8Mpau51VuH3YcbjBLwSSBHcAGeLQ16fm9ooebus2PM2DA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrfeefgdekkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecukfhppeduuddurddutddvrddukedtrddukeehnecurfgrrhgr mhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiinecuvehluh hsthgvrhfuihiivgeptd 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 AC433D6005F; Thu, 26 Sep 2019 00:53:18 -0400 (EDT) Date: Thu, 26 Sep 2019 13:53:14 +0900 From: Michael Paquier To: Peter Eisentraut Cc: Victor Wagner , pgsql-hackers@lists.postgresql.org Subject: Re: PostgreSQL12 and older versions of OpenSSL Message-ID: <20190926045314.GC2115@paquier.xyz> References: <20190924101859.09383b4f@fafnir.local.vm> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="lc9FT7cWel8HagAv" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --lc9FT7cWel8HagAv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Sep 24, 2019 at 11:52:48PM +0200, Peter Eisentraut wrote: > That's not actually what this file looks like in the upstream release. > It looks like the packagers must have patched in the protocol codes for > TLS 1.1 and 1.2 themselves. Then they should also add the corresponding > SSL_OP_NO_* flags. AFAICT, these pairs of symbols are always added > together in upstream commits. Yes, they did so. I see those three fields as of 6287fa5 from upstream which is the release tag for 0.9.8j: #define TLS1_VERSION 0x0301 #define TLS1_VERSION_MAJOR 0x03 #define TLS1_VERSION_MINOR 0x01 However if you look at the top branch OpenSSL_0_9_8-stable (7474341), then you would notice that ssl/tls1.h does something completely different and defines TLS_MAX_VERSION. So everything is in line to say that the version of OpenSSL in SUSE labelled 0.9.8j is using something compatible with the latest version of upstream 0.9.8zi. I think that we should just stick for simplicity with the top of their branch instead of trying to be compatible with 0.9.8j because Postgres 12 has not been released yet, hence if one tries to compile Postgres 12 with OpenSSL 0.9.8j then they would get a compilation failure, and we could just tell them to switch to the latest version of upstream for 0.9.8. That's something they should really do anyway to take care of various security issues on this branch. Well, if that happens they should rather upgrade to at least 1.0.2 anyway :) So I agree with the proposal to rely on the presence of TLS_MAX_VERSION, and base our decision-making on that. -- Michael --lc9FT7cWel8HagAv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl2MRDoACgkQnvQgOdby QH04TA/8CjofIOSpadT7u7e6kqrlmqv+6bXcv0Ogr5Gj2ypJFIVktoVInhNm/NE7 54mvGZF2AC8MInZ00HEPLybJj2vF2YQyNmHw/UoBSfs3Q7oTt6aW4MQbLE/w2I8F 0Et6fFV6nPTUijMfEddXrb/milzeKyNJ5Z+7mKOXUJFxWkJ4DxJhwQ1q1HCHvnGm vYa6TzfwHfeQhi4ke9QDUilx/LdXx/lzdMQc2GdzaBcdBy5H+4JfeZ6pXq1TG5Or dfwSHV/V2UVxg0SoOGuMFiIRlbJBevpTmsn6OtNoI8XKRxPhyEDkTLBAsErY3blg /18+begmca2NwwZkbaB6W7QHaeucuO8H6aOSvzfg2GmxMuhEDImDb0Cv85/n6Azg tp2/OF+eRT5MtZOoLn8JuJYmbNpPMit2sqU+V6b929RTS2tHgezECl74bVeOf0vP psixBX4hC5RPrsiIIGXBwIQUgQzXNl9cYkHnQu/dy/7PYxhzY2RdroGUZWD/38Sa AzAzx3DAJhEqRnwZvRCjJQFKJHJs1wZZ/VE3TUC+4wu6KL4xsrUzgBe3TzLzniN5 x+g8dbdbGKKZdoiADw5HEFlbKuT31Q0x+nTy2Cup2b+THSSwoO1LHg8KVOiNhR75 FvXvYjeIRF16FZD+Hd+J/9FybbA1PsTgCAsc57iuqQOZapBFjs0= =BiQg -----END PGP SIGNATURE----- --lc9FT7cWel8HagAv--