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 1uD2oe-005lIH-Ss for pgsql-hackers@arkaria.postgresql.org; Thu, 08 May 2025 15:05:41 +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 1uD2oc-004I0z-EU for pgsql-hackers@arkaria.postgresql.org; Thu, 08 May 2025 15:05:38 +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 1uD2oc-004I0m-0a for pgsql-hackers@lists.postgresql.org; Thu, 08 May 2025 15:05:38 +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.96) (envelope-from ) id 1uD2oY-000mkw-12 for pgsql-hackers@postgresql.org; Thu, 08 May 2025 15:05:37 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id 969B939B85C for ; Thu, 08 May 2025 17:05:31 +0200 (CEST) Received: from s899.loopia.se (unknown [172.22.191.5]) by s807.loopia.se (Postfix) with ESMTP id 7DABC39B940; Thu, 08 May 2025 17:05:31 +0200 (CEST) Received: from s473.loopia.se (unknown [172.22.191.5]) by s899.loopia.se (Postfix) with ESMTP id 7AA022C8BAA4; Thu, 08 May 2025 17:05:31 +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: s473.loopia.se (amavisd-new); dkim=pass (2048-bit key) header.d=yesql.se Received: from s934.loopia.se ([172.22.191.6]) by s473.loopia.se (s473.loopia.se [172.22.190.13]) (amavisd-new, port 10024) with UTF8LMTP id uS2n1Jhxn9xp; Thu, 8 May 2025 17:05:30 +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 A78E27CEAB1; Thu, 08 May 2025 17:05:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yesql.se; s=loopiadkim1707475645; t=1746716730; bh=5M039kJbsX1HuC95mK0zEYebKQshdkG1UtxlEfepI6o=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=CzJxqTLOZMm8WHLt2E6AfmW+mXiLAmBTce5oqqETQHBM6Yai05LsoaRsv8dXY6oqe m4edB+wHGw67rkDvu3KrhVNuQ2F5QlZ3LTkMLy19i8V1nn8C9DLHSdFIyTJb+7eF6g KheIUcGLULd5HiUntZg2YuHwy2Agz0siYh9lueqVhSUrOiF7/+oXMgy2QNXGErs2wj NQHdeWXFkFtpXfAtG/pzvTQrBTsF8QPVJ0PeWCg6zZUpv85kC2YGtT0pWHbVLUfjb5 QbazYlQJHx6meXF8j4adno3bz19CPeqm03Y245Lt98imumtChF9DQlGGPONSZumxpS kE4tmZh/SaILA== Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51.11.1\)) Subject: Re: disabled SSL log_like tests From: Daniel Gustafsson In-Reply-To: <182014.1746712177@sss.pgh.pa.us> Date: Thu, 8 May 2025 17:05:20 +0200 Cc: Thomas Munro , Andrew Dunstan , PostgreSQL Hackers , Jacob Champion Content-Transfer-Encoding: quoted-printable Message-Id: <2C91E50A-BBBF-4863-8582-6BF2C645CCC1@yesql.se> References: <984fca80-85a8-4c6f-a5cc-bb860950b435@dunslane.net> <2199758.1744901785@sss.pgh.pa.us> <1ce11d3f-624c-4003-a032-1b10cc138305@dunslane.net> <2814408.1745005558@sss.pgh.pa.us> <2859105.1745015195@sss.pgh.pa.us> <1120735.1745350422@sss.pgh.pa.us> <3058990.1746485124@sss.pgh.pa.us> <3227092.1746580691@sss.pgh.pa.us> <3248136.1746592452@sss.pgh.pa.us> <3004EFB2-8FFA-429A-AC5E-E3F40E002A94@yesql.se> <3320404.1746633879@sss.pgh.pa.us> <8E3E58BF-CC99-4C45-9FB8-3BA83AA6FDC8@yesql.se> <51363.1746646179@sss.pgh.pa.us> <8293D36E-8027-4DB8-AB41-5EA2C2A9A788@yesql.se> <80137.1746654871@sss.pgh.pa.us> <182014.1746712177@sss.pgh.pa.us> To: Tom Lane X-Mailer: Apple Mail (2.3776.700.51.11.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 8 May 2025, at 15:49, Tom Lane wrote: >=20 > Daniel Gustafsson writes: >> On 7 May 2025, at 23:54, Tom Lane wrote: >>> +# Determine whether this build uses OpenSSL or LibreSSL. As a = heuristic, the >>> +# HAVE_SSL_CTX_SET_CERT_CB macro isn't defined for LibreSSL. >>> +my $libressl =3D not check_pg_config("#define = HAVE_SSL_CTX_SET_CERT_CB 1"); >=20 >> Longer term it would be nice to move this into SSL::Server and have = the module >> export a function or symbol which returns the underlying library and = version, >> but that's not for this patch. >=20 > I was feeling itchy about having two copies of code that looks none > too set-in-stone. Maybe we should just do that. Any preferences > on the API? There is already SSL::Server::ssl_library() which returns the underlying library, but it's not smart enough to differentiate between which = flavour of OpenSSL compatible library is being used (OpenSSL, Libressl, BoringSSL = etc) as it's only returning a hardcoded string as of now. My plan was to expand = that at some point. -- Daniel Gustafsson