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 1ipDin-0003rF-Pv for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Jan 2020 15:58:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ipDim-0004uw-Ia for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Jan 2020 15:58:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ipDim-0004up-9g for pgsql-hackers@lists.postgresql.org; Wed, 08 Jan 2020 15:58:12 +0000 Received: from tamriel.snowman.net ([96.255.250.162]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ipDij-0006te-Na for pgsql-hackers@lists.postgresql.org; Wed, 08 Jan 2020 15:58:11 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 363415F799; Wed, 8 Jan 2020 10:58:09 -0500 (EST) Date: Wed, 8 Jan 2020 10:58:09 -0500 From: Stephen Frost To: Alvaro Herrera Cc: Robbie Harwood , Pg Hackers Subject: Re: weird libpq GSSAPI comment Message-ID: <20200108155809.GJ3195@tamriel.snowman.net> References: <20200106210322.GJ3195@tamriel.snowman.net> <20200106213817.GA29411@alvherre.pgsql> <20200106215349.GL3195@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="tdQ/cUPFeGPJLsIw" Content-Disposition: inline In-Reply-To: <20200106215349.GL3195@tamriel.snowman.net> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --tdQ/cUPFeGPJLsIw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Stephen Frost (sfrost@snowman.net) wrote: > * Alvaro Herrera (alvherre@2ndquadrant.com) wrote: > > On 2020-Jan-06, Stephen Frost wrote: > > > > I wonder if part of the confusion might be due to the synonyms we're > > > > using here for "in use". Things seem to be "got running", "set up", > > > > "operating", "negotiated", ... - maybe that's part of the barrier to > > > > understanding? > > >=20 > > > How about something like this? > > >=20 > > > * If GSSAPI Encryption is enabled, then call pg_GSS_have_cred_cache() > > > * which will return true if we can acquire credentials (and give us a > > > * handle to use in conn->gcred), and then send a packet to the server > > > * asking for GSSAPI Encryption (and skip past SSL negotiation and > > > * regular startup below). > >=20 > > WFM. (I'm not sure why you uppercase Encryption, though.) >=20 > Ok, great, attached is an actual patch which I'll push soon if there > aren't any other comments. Pushed. Thanks! Stephen --tdQ/cUPFeGPJLsIw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJeFfwQAAoJEO1sijiDR2RVaIUQALIgty12k3Cw8RcAnh7zrpHJ uZOb1xsiXY+1gj3DrDGBxUUK0XswmCHOs3q9OjK/ixBKnP08hwvuJqECETrwrvuO Qk8U9QQa7EevY23FP92e1PNXBBlb0YqviueF14LiXzc1fX+rYdupa9Ew5aKbHibJ NuVxcsS/fekWh37dgKmoEz69NrqpoiMHClJ9bFRLnc7vJJofg2HydLHVrcqYsI/l HPbinbL8H7NGphHpLKtcc0kvn5pXycYUBnfK0j2PIY6/E0rI2J2LPG8XgkgMAsLn 1jgkSRgNymQGiNFNOjlw0fKXD0yIsDFwhNCDArdVnHPIRwF/amtAqvTXNNyCCf5O 6D3qGBYsm/VDt085b+fscKE4rXTRK6v1Mz1H51ggH3sIvn1ndFv/eT+BSszXN20q U8ZifgasUgPsFzmIgdk2Cerg3Y9bXevoCd0p9XaS+92kDBnyeykaM1ZhOG1ZNgl9 gKrsDAXKOnxkciqT9YxLXIePXN84YDmbbZKnHCQOdjOwMYqTTc76+IVwF2VQTXhc 90yQd8FOyFwiiw1bwcaD0GdWn7Vxj4CrbaltFVKABMTCWyBnmk19rBvBwj5f+FJf 5cVRZ77rkboMaMN57fYH+LHLVWQKxGh5H/wz0/fCCk7fYU9CryevmuGCBX4yajz+ s82PmZ3POHE5fFhhgldv =Fx+D -----END PGP SIGNATURE----- --tdQ/cUPFeGPJLsIw--