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 1l6ZDN-0007zP-5X for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Feb 2021 13:26:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l6ZDL-0008F1-RX for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Feb 2021 13:25:59 +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 1l6ZDK-0008Eu-IY for pgsql-hackers@lists.postgresql.org; Mon, 01 Feb 2021 13:25:59 +0000 Received: from [66.111.4.29] (helo=out5-smtp.messagingengine.com) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l6ZDH-0004Ca-NG for pgsql-hackers@lists.postgresql.org; Mon, 01 Feb 2021 13:25:57 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 8AEBE5C0158; Mon, 1 Feb 2021 08:25:44 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 01 Feb 2021 08:25:44 -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=iNjm0JBJ6jd95BDVa51XnMATypC e2rnTvkDk8J9idfk=; b=ODDT/BdbJyimaBt08ATCd7VHPYkDIZaEPT+NF2ICWRA Iovad7Bev4Xkzu3zNdVrzIZBZHKeFtfkUmPgAN5Fy9YLtLBbFcKH+rb2QmMEb4Tx H4apkh/pddWD3yf9IBbgKQ6Bo5q6F6BASXEOw0pfA5+byL2nK5WmMewK9bFA1tu0 43AW5ZcDkLkfs5NpdmRxuQR68G4J6TFGubAd8MI1n0hoptbhyiOJYs9Kb9QdqpvW FBMZomp2VB7j+HPzrqGbs5wpvOtFCnuYUmFVAk+T9fu+nPuPsA9uRkczo2zobr9r u2G1R5j4pUWNogTeUW3vJXfeRCCPdH9pQWEXlhvVeAA== 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=iNjm0J BJ6jd95BDVa51XnMATypCe2rnTvkDk8J9idfk=; b=JgrE19MhC6y5E3BC8/G/bq 5rARppGDiJeu+F3YuMbcDYmmLxm72nsWHcr8UVSF/jkCwQJE9GXeGgml4sD9vfsx cw/U4+WOsnjEVhJiLF/qYtZhS6NCV2cO7yELqiX2H7W1t+knMRB+o4kmnpBtYKWR SAS6K5KwhCfbU5XRwhlYjm3CavIrbyYa2vnnsBPnJCnAjiD4hHKvlocPFBL8kMir STGZ1cg5jKRT/N34lZBJokhMqEF4vBEqkED0x6g4cku5AQGxbGo+gyRB7/c6qdB/ yvPRt6s8wSJ67PXtRNnO2OggNg8H3edX4FyXizuGaHmPADpr5tTUwMKmikTwv/gg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeekgdehudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepvdegudeuhfdtueeltedtveejheeh ieevueeigeelteegleejleeiueeiheegvefhnecukfhppeduuddurddutddvrddukedtrd dukeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhep mhhitghhrggvlhesphgrqhhuihgvrhdrgiihii 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 AF5101080067; Mon, 1 Feb 2021 08:25:40 -0500 (EST) Date: Mon, 1 Feb 2021 22:25:37 +0900 From: Michael Paquier To: Daniel Gustafsson Cc: Jacob Champion , Heikki Linnakangas , Andres Freund , Postgres hackers , Andrew Dunstan , Stephen Frost , Thomas Munro Subject: Re: Support for NSS as a libpq TLS backend Message-ID: References: <5C27CF6F-5BD3-4639-AAA6-73465595B6DF@vmware.com> <7B5A88DF-863A-4B00-B841-0285C1FF70DF@yesql.se> <5F24348B-10BA-4AA1-999B-1E2AB22B4997@vmware.com> <94E22878-6289-43D5-A674-804F6CB23782@yesql.se> <60DFB11D-2466-4286-84DC-F8F965DA675C@yesql.se> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="YG1UoHJE12/o72TR" Content-Disposition: inline In-Reply-To: <60DFB11D-2466-4286-84DC-F8F965DA675C@yesql.se> X-Host-Lookup-Failed: Reverse DNS lookup failed for 66.111.4.29 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --YG1UoHJE12/o72TR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Jan 29, 2021 at 01:57:02PM +0100, Daniel Gustafsson wrote: > This has been discussed elsewhere in the thread, so let's continue that there. > The attached v23 does however split off --with-ssl for OpenSSL in 0001, adding > the nss option in 0002. While going through 0001, I have found a couple of things. -CF_SRCS = $(if $(subst no,,$(with_openssl)), $(OSSL_SRCS), $(INT_SRCS)) -CF_TESTS = $(if $(subst no,,$(with_openssl)), $(OSSL_TESTS), $(INT_TESTS)) +CF_SRCS = $(if $(subst openssl,,$(with_ssl)), $(OSSL_SRCS), $(INT_SRCS)) +CF_TESTS = $(if $(subst openssl,,$(with_ssl)), $(OSSL_TESTS), $(INT_TESTS)) It seems to me that this part is the opposite, aka here the OpenSSL files and tests (OSSL*) would be used if with_ssl is not openssl. -ifeq ($(with_openssl),yes) +ifneq ($(with_ssl),no) +OBJS += \ + fe-secure-common.o +endif This split is better, good idea. The two SSL tests still included a reference to with_openssl after 0001: src/test/ssl/t/001_ssltests.pl:if ($ENV{with_openssl} eq 'yes') src/test/ssl/t/002_scram.pl:if ($ENV{with_openssl} ne 'yes') I have refreshed the docs on top to be consistent with the new configuration, and applied it after more checks. I'll try to look in more details at the failures with cryptohashes I found upthread. -- Michael --YG1UoHJE12/o72TR Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmAYAVEACgkQnvQgOdby QH3jyQ/9FINn+J/SwlQp1KQPgCHj4F+oPCrPwm8jTgDcFqWbt2HwfKZe6oeFacQe 4ZPUgJtlo2AwWFQEfw2LqfDhs8s+Wfm2JcFhZyhQCVlvpKvojS0HPFjgzCz5GYdd 0D4uBwNPBZtc/BQYlbxg2J8xB8ZUFeEuOERcgTIwjR7xHwyCsL4ChB8aZu+AlFoC z6RCdkd4yPNmNWMkEOoC5KCzvrJ5kQPF1A3sWym5v1m1EVvzv+3O5jbv5fsm6MhY fGZAO5xsq4qeW7AOrHR9MH0yDB7Mk1pOdlQ4plbxT5Q0o6nhPTSePRRIJpIUwLXx 5FwGCjT0GgsfPiE72ngITpTyL6fHuujnWTfUopCCA8/ErNVYhHeDzUYdvU0JeY2/ hq/EdcEdvYRzB4ct6HlUrxzGGJh5/N8K5qOZQ9wICPM19FogBPTz+OAaPDOOJdmJ 5pHwjK2XCUpA63WQY5w+DEsMIGGbtlZ684x1zdzB3RBIne6hTdTPq3EBLXW3NhXk HXSA5rwRXmas2sdoZomsx3MyGeYqPYn1VF68xGVkbyk36KSDiQ59jRVRuOJ7fXZi XIXo0L9y0HtpdUQM2tsXru6iAcFdBNnRDmJY8gJge8T7yF8qH5qgTyh1xP29QCl+ R3n1HgsD4+e/Zlsgrzh/nxBZEwTSrQwcX3ps3Bpv8CdfmzPzmAI= =Wokl -----END PGP SIGNATURE----- --YG1UoHJE12/o72TR--