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 1s2SSI-003ALI-Hr for pgsql-committers@arkaria.postgresql.org; Thu, 02 May 2024 09:10:19 +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 1s2SSF-00GraY-CR for pgsql-committers@arkaria.postgresql.org; Thu, 02 May 2024 09:10:16 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s2SSF-00GraQ-2y for pgsql-committers@lists.postgresql.org; Thu, 02 May 2024 09:10:16 +0000 Received: from smtp.outgoing.loopia.se ([93.188.3.37]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s2SSC-0013ie-IW for pgsql-committers@lists.postgresql.org; Thu, 02 May 2024 09:10:14 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id 925023014AF2 for ; Thu, 2 May 2024 11:10:09 +0200 (CEST) Received: from s934.loopia.se (unknown [172.22.191.6]) by s807.loopia.se (Postfix) with ESMTP id 74AB12E28F26; Thu, 2 May 2024 11:10:09 +0200 (CEST) Received: from s471.loopia.se (unknown [172.22.191.6]) by s934.loopia.se (Postfix) with ESMTP id 65F3F7CEA42; Thu, 2 May 2024 11:10:09 +0200 (CEST) X-Virus-Scanned: amavisd-new at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -1.2 X-Spam-Level: X-Spam-Status: No, score=-1.2 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1] autolearn=disabled Authentication-Results: s471.loopia.se (amavisd-new); dkim=pass (2048-bit key) header.d=yesql.se Received: from s934.loopia.se ([172.22.191.5]) by s471.loopia.se (s471.loopia.se [172.22.190.35]) (amavisd-new, port 10024) with UTF8LMTP id LRCakEvW8QQJ; Thu, 2 May 2024 11:10:09 +0200 (CEST) X-Loopia-Auth: user X-Loopia-User: daniel@yesql.se X-Loopia-Originating-IP: 89.255.232.193 Received: from smtpclient.apple (customer-89-255-232-193.stosn.net [89.255.232.193]) (Authenticated sender: daniel@yesql.se) by s934.loopia.se (Postfix) with ESMTPSA id EE9FF7CEA75; Thu, 2 May 2024 11:10:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yesql.se; s=loopiadkim1707475645; t=1714641009; bh=xC+ORIMpBIIQIjrrea1qJRBcQPXd750uDYAnr7uVYJY=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=BkJUIMEfpg5gqqYwuMRBeaplKs6QhTvqeG4Ao3ATa+UHMPa2OG+7rwq2dOp8fDJlS SgoKIYZx2iSPLKF4CCFus7WwohpqdPgbZFrSlYXHbXk6wtlYthtSjWIS697SYFdFk3 PD7tE5yXsJ799xF+kjlfDO9Cjhy2Zg/8upp0z4YPYcnJPN7WWtv/f2g7wHNpkwhCFB mCFOindxKEoNwELsFJQ4sWQmAK8ISOrJ1Jnm8b4uzW+tluvL3hUu5vtFfl346Tj5S9 EcSddWVsUyjO5Ft6tjHNfwD8yRogWnI5/KkyZP8FCjCBH0+SlQYH4k0d8uIIAc1yEH qS10YmRXqQUcw== Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.500.171.1.1\)) Subject: Re: pgsql: Fix compilation on OpenSSL 1.0.2 and LibreSSL From: Daniel Gustafsson In-Reply-To: Date: Thu, 2 May 2024 11:09:58 +0200 Cc: pgsql-committers@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <1C71E5C4-46BE-46B7-9884-310B25280B49@yesql.se> References: To: Heikki Linnakangas X-Mailer: Apple Mail (2.3774.500.171.1.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 30 Apr 2024, at 07:26, Heikki Linnakangas = wrote: > Fix compilation on OpenSSL 1.0.2 and LibreSSL >=20 > SSL_AD_NO_APPLICATION_PROTOCOL was introduced in OpenSSL 1.1.0. + * https://github.com/openssl/openssl/issues/24300. This is = available in + * OpenSSL 1.1.0 and later, but as of this writing not in = LibreSSL. I'm a bit confused, as far as I can tell this has been in LibreSSL since = the OpenBSD 6.9 release. https://github.com/openbsd/src/blob/master/lib/libssl/ssl_tlsext.c#L130 Or am I missing something?=20 -- Daniel Gustafsson