Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s2Thl-003Kiz-Ns for pgsql-committers@arkaria.postgresql.org; Thu, 02 May 2024 10:30:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1s2Thj-00HDh5-AC for pgsql-committers@arkaria.postgresql.org; Thu, 02 May 2024 10:30:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s2Thj-00HDgw-05 for pgsql-committers@lists.postgresql.org; Thu, 02 May 2024 10:30:19 +0000 Received: from lahtoruutu.iki.fi ([185.185.170.37]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s2Thc-0019eW-3F for pgsql-committers@lists.postgresql.org; Thu, 02 May 2024 10:30:18 +0000 Received: from [192.168.1.103] (221-243-190-90.dyn.estpak.ee [90.190.243.221]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: hlinnaka) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 4VVVYt2XFvz49PvR; Thu, 2 May 2024 13:30:10 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1714645810; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yoxZnJPdSEg24SZrT8pCOsOV6PBiyvHBrmYyK6fdA2Y=; b=lcYBgq41u7iL87eA6+vN+YP9GEpYBE/E3wZgIpC8NbVh5JV7Q3R1VhXi2OR+a48e1/O83p /e6yHogL1bW+EkgwQtigdOOwhgRG3Gd14AVmJpZen1GBKtSOZqNyDgZ8aNnr2rOjcP4AML vUKZaeg8N6ExzEA9Kiapp4Icc23OE2dth6skuYmk6LkULQEma+BviBXMnrZGX7Z+gpPwyc 8ruYuBSnnnjpmEJruu7xr1MsWJi9T5EBm9TrkKhaLVLhgqOCP4GJpVrYNXipQ+Z8vIbkRc ttO+4IoklqD4qsQkSpBxxbKcrdZOqgMV4xmQ0fk75Sf3zK7o284cFPFXvHbG1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1714645810; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yoxZnJPdSEg24SZrT8pCOsOV6PBiyvHBrmYyK6fdA2Y=; b=EdPeoU3Y6soGE7VBTvIrZGVbXWRsp7uJdpkhjdHqJ4Hfg29uhEodFqRH6hrlzJBC/4l4+C S5ZUFN/2zrA5lYuJmq2sLwl8FQ8QufHI2Tar53HzZHQZT5YYFESc3PW72CiaBAATY9NmdZ IP7d5errluS3ocaKVOspl3OwM9/U1awfB/AcW4vsCTLZK2h30zDkPib6jWPmy7ONNmnFj3 PP1oEAX5TuG5WecAHhFvxIFpUwAzMHwBcvnuutYGIlF7sxuTpadkvngeFmbzMfzfCduH+t IKZlvlLdDx1M8pGemHaP6/5LiWGmNF5KI4vv0o8JjFaHvAg0BgBQuncvNDszOQ== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=hlinnaka smtp.mailfrom=hlinnaka@iki.fi ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1714645810; a=rsa-sha256; cv=none; b=kjCwOs0coNdvYDvdj1Gc9PfONQIAfEqfHXqCJGe4fDvsukmxBSGyh2DMX7YAqkSaDB8omV 8zwzmXH1ls0UtgCdZioqhSLW6M2ypJ+O4lPKyxflUDD4DzVX/yOpNTeL/ppP/HDNlfgFR2 LqAkUa4vy7cksGApRWSThUptcCAtHy+vP86fyGQH3MpQ7euB0aNkdlDh6tmfrp7+pwAjJX QDK9n7EOoic+cdQKzLiWLcAMBGBCtOxtsrklqIeSGsUgWCFnfvZ9aL2HRLASBSrK215+W/ hrVQbvF6RIWQLSOs7LMM+YhToBB9k12Wz+VQLcQJ2e3OtNb8c+SgPgw8CvfLFw== Message-ID: <6f62a93d-3ebb-476f-8ff2-1187c790cd99@iki.fi> Date: Thu, 2 May 2024 13:30:09 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: pgsql: Fix compilation on OpenSSL 1.0.2 and LibreSSL To: Daniel Gustafsson Cc: Heikki Linnakangas , pgsql-committers@lists.postgresql.org References: <1C71E5C4-46BE-46B7-9884-310B25280B49@yesql.se> <5f162ff7-02f0-42f4-9473-53cfb7393bc3@iki.fi> <5EACEB09-BCBC-432A-A5B0-E8FD73808276@yesql.se> Content-Language: en-US From: Heikki Linnakangas In-Reply-To: <5EACEB09-BCBC-432A-A5B0-E8FD73808276@yesql.se> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 02/05/2024 13:24, Daniel Gustafsson wrote: >> On 2 May 2024, at 11:30, Heikki Linnakangas wrote: >> And I don't see the symbol in a fresh checkout of the portable libressl repository at https://github.com/libressl/portable. > > The portable repo only contains the portable parts, did you pull the libssl > code with ./autogen? Ah, ok, I did not. If so you should be able to see it, like below: > > :~/dev/tls/libressl $ git clone git@github.com:libressl/portable.git > :~/dev/tls/libressl $ cd portable/ > :~/dev/tls/libressl/portable (master) $ git checkout OPENBSD_7_0 > branch 'OPENBSD_7_0' set up to track 'origin/OPENBSD_7_0'. > Switched to a new branch 'OPENBSD_7_0' > :~/dev/tls/libressl/portable (OPENBSD_7_0) $ ./autogen.sh > ... > :~/dev/tls/libressl/portable (OPENBSD_7_0) $ cd openbsd/ > :~/dev/tls/libressl/portable/openbsd (OPENBSD_7_0) $ git grep SSL_AD_NO_APPLICATION_PROTOCOL > src/lib/libssl/ssl.h:#define SSL_AD_NO_APPLICATION_PROTOCOL 120 > src/lib/libssl/ssl_tlsext.c: *alert = SSL_AD_NO_APPLICATION_PROTOCOL; > > This makes targeting 7.0 as the lowest LibreSSL version appealing in my > patchset for removing support for old OpenSSL and LibreSSL versions. Works for me. Although there's little harm in keeping the "#ifdef SSL_AD_NO_APPLICATION_PROTOCOL" either, if that's the only thing missing from 6.9. -- Heikki Linnakangas Neon (https://neon.tech)