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 1iF6Gg-0006zu-GE for pgsql-committers@arkaria.postgresql.org; Tue, 01 Oct 2019 00:43:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iF6Ge-00086Q-1W for pgsql-committers@arkaria.postgresql.org; Tue, 01 Oct 2019 00:43:52 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iF6Gd-00086C-Nr for pgsql-committers@lists.postgresql.org; Tue, 01 Oct 2019 00:43:51 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iF6Gb-0006qt-Cq for pgsql-committers@lists.postgresql.org; Tue, 01 Oct 2019 00:43:50 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 63750209E5; Mon, 30 Sep 2019 20:43:48 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 30 Sep 2019 20:43:48 -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=E8rLdZoFlRQTHslFaxunJvNGOVw /0PfGuUjWcvoWWtg=; b=hs3oafim82QCl7arOj/LHLfq0GIRSI1by8XPvni4Gfn IB/mknVC3ccm/0bHd6ihVsOVzZ94VzeMf+vppblHXrtS5ARl4btXfFj4UcPBMXkf uGIAfTkcpRiWH8FibZnkYN2Et2keyrnkgsHoxoDEtndkc2v4FFRPCaa4uBhOwV8O 0J3Po2IHZLClv8YAmu8Z2Mq5dQ9Nx2WtXJcNduOGpeweZ0IvwNivB65ZWoYXPiwf QbwHRoJ0KQfNG1+UYXq0257SMvMqSpPRWoz2F6HUNxFhmia+I63E1bN4CotgFaYj Ehd4CEebc2RgEs/XxGZdv54blRPRD6PIen7rUndIMlA== 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=E8rLdZ oFlRQTHslFaxunJvNGOVw/0PfGuUjWcvoWWtg=; b=IBPALCw540B2lymqnMaZlF 416cIihZqdhMOvJp2irNhcVu5KbVGESuV3t4QaTrP3EG6H/3F9GTFvvtj9dsgmV8 6GqP+4wjtqpeFhUWS58JAleWWSsNhYuZ3J+Z3fEUzePJo1vL4H428ZpGJPaObkp3 AIgxEmR6QNBbS1RWgtfzrXZsknyEXKALZ5yD3ePB1yHj1R6JCv6k0aOCKMZlizC6 l3ePogZJ5dRU9AM/n5vxPTLg5Y6GOsekrEt3W5mI0pFQTCySHSxps8A5JLjncqo2 YLs/u8V6FbvgMNJOnYR4rajgzxUliizxLuQgmiidMi021dUThlrZYt76ipJu77hg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrgeefgdefhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecufghrlhcuvffnffculdefhedmnecujfgurhepfffhvf fukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhi vghruceomhhitghhrggvlhesphgrqhhuihgvrhdrgiihiieqnecukfhppeduudekrddvge durddvhedtrdduieegnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehp rghquhhivghrrdighiiinecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from paquier.xyz (mp76f1faa4.ap.nuro.jp [118.241.250.164]) by mail.messagingengine.com (Postfix) with ESMTPA id 4CB13D6005E; Mon, 30 Sep 2019 20:43:46 -0400 (EDT) Date: Tue, 1 Oct 2019 09:43:42 +0900 From: Michael Paquier To: Tom Lane Cc: Jeff Davis , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Add libpq parameter 'channel_binding'. Message-ID: <20191001004342.GC2781@paquier.xyz> References: <24857.1569775891@sss.pgh.pa.us> <20190929234733.GA2888@paquier.xyz> <20190930064539.GK2888@paquier.xyz> <20190930070826.GM2888@paquier.xyz> <55c81610cba6bcc5289268ae46c686cabc439a0f.camel@j-davis.com> <28779.1569879706@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="rQ2U398070+RC21q" Content-Disposition: inline In-Reply-To: <28779.1569879706@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --rQ2U398070+RC21q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 30, 2019 at 05:41:46PM -0400, Tom Lane wrote: > Jeff Davis writes: >> Looks good to me, though I think you need to update the expected error >> message in the test you just added. >=20 > The test case did pass for me when I tried it on an old-openssl machine > a few hours ago. I don't think this test has any way to exercise the > code path where the server has support and the client doesn't (or > vice versa). The behaviors of "prefer" which make sense with or without channel binding support on the client-side is actually what matters here when the server sends back SCRAM-SHA-256-PLUS over SSL. We could use a compile flag and enforce it in a buildfarm animal, or have more modes within the parameter, but the gains are not really worth the code complications in my opinion, and the parameter is already complicated enough. -- Michael --rQ2U398070+RC21q Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl2SoT4ACgkQnvQgOdby QH2ROA/+PQHHxLsG/uCA6nVoZrP10uMNupWcxSyxh+3J0q5HtrgaL0Z5xHRir8Np iF6OXTxzCgGCw6PJLHWar6CxIQlrgKWuzejl+3BsWvG+KW13ft2vx/a3NBMgcZnc eDCvsD4W7hSTu4vnAT1dneXNdJdoPdWnuNpnw/90VPIXX2jfgoHZpAtbKL5bGbiT 8c0bei+qxnQ6CcrmUXsQZe6OouBBGngUn35/JuHbF7MK5fWmD4EeBkCbz+qo6gzp oI0UR2vkAQz07D2LLYN+5vJfD84QuOKUxKG2aiBxWl5rXmWVWVHGpz5mHf/2rte+ 5ymxmPlRVGRRYnGKBGxVmMxWIXyQ6mxgfuZYtGIH/7/QvEnNnoM4cDLSQfOamzt1 prAsopJGN9OMzpsPZ/5boWqvp+X9nzkdkZaOG+iWEMBTMIafvL54wT4ihhUW/Dq8 9jO1hNV9F8/NzH7wLc3gMpqQU7YXOFfKsdgLVkz6bPW+9/e0XbQWCF2m1dhG4Da0 hT+3ENiYjEVUYcjFpK1cwxEhutL/LnQvC3YhmbrR2fmlzv2rexzI3UmOOEJ0fjF2 ucf2RbKC5PhWUUx9iqlaBnFiBzaApR6NCPYZeR3o1tAE89aQ2t1WnCNr5FsqZ2JP u14u7NMWshf5O/+9T/5SnzJidh4cBi7INp0hia9CoLZM0bZLRyc= =JOsj -----END PGP SIGNATURE----- --rQ2U398070+RC21q--