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 1ioZon-0003ix-7p for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Jan 2020 21:21:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ioZol-0004fe-Hq for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Jan 2020 21:21:43 +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 1ioZol-0004fW-8U for pgsql-hackers@lists.postgresql.org; Mon, 06 Jan 2020 21:21:43 +0000 Received: from us-smtp-1.mimecast.com ([207.211.31.81]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1ioZoh-0007lc-EW for pgsql-hackers@lists.postgresql.org; Mon, 06 Jan 2020 21:21:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1578345696; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Z0/t9kKIyya0mCQiFCHcxWTo3lFjrErsHxUVoSOb9qU=; b=F0r+lp4wJURPa7+ZI46zmZLp95us6UUP4s1RI561FppH9Y7Udj8niKarCqc/R8YS1wNzqS HLiDwvKYo49Hveo4pCIUo7hOYNq1UmT4u4jDosRwKXGq6QOz9aA56589NC9DXxuInBih/Z oH/jgjJHLAQsyLIATdkPIQTQpXKuOys= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-5-CrcGigp8Mme8yhWVHKvT4w-1; Mon, 06 Jan 2020 16:21:35 -0500 X-MC-Unique: CrcGigp8Mme8yhWVHKvT4w-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E20FD2F2B; Mon, 6 Jan 2020 21:21:33 +0000 (UTC) Received: from localhost (dhcp-10-20-1-106.bss.redhat.com [10.20.1.106]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8EE4C19C58; Mon, 6 Jan 2020 21:21:33 +0000 (UTC) From: Robbie Harwood To: Stephen Frost Cc: Alvaro Herrera , Pg Hackers Subject: Re: weird libpq GSSAPI comment In-Reply-To: <20200106210322.GJ3195@tamriel.snowman.net> References: <20191227202332.GA20278@alvherre.pgsql> <20200106210322.GJ3195@tamriel.snowman.net> Date: Mon, 06 Jan 2020 16:21:30 -0500 Message-ID: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Mimecast-Spam-Score: 0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --=-=-= Content-Type: text/plain Stephen Frost writes: >> Alvaro Herrera writes: > > How about something like this? > > * 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). This looks correct to me (and uses plenty of parentheticals, so it feels in keeping with something I'd write) :) Thanks, --Robbie --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEA5qc6hnelQjDaHWqJTL5F2qVpEIFAl4TpNoACgkQJTL5F2qV pEIh+Q/+PfsvWtEsk/dCCycTRCRfvmQJqB5VpQMlR47ItqpWnnayM0Ez6nMAlcIc 5cZ25iODFfWbH09984GvItk3LSPaEKL0TmDnQPRuj2kD/BX9ASIERt1YVDz0BMEO Wf+osjrIRiftW3ExYWHgyTNYM7E05wAexbAt/yF30r/EKaufzxDc8XMfItJn623g 0LCZuZ45N17Ezt5TycEBWnMvlX/dhSbuUGU/AlsWq56+1gbIlMrsSjw80qzGL6TP MIM5jhaGz2yX2vU5ZexvPFsIiGqv1JK5vVXa9gCBQdj3so1f+Is5ow/ltBN7PJAf 90mccsUujY8dAiIczSA/xgdHRLorHT4dRK75tHZ7M4Pfbcfvyax9AkK3XaAFV4VD Xkud472TzGpFxEllOoAPQjgkQhINr24pUVVtY2t1OcsyC+wQ3DaEgWhA9aAyG5Ee rL2zLnFwaxEz8NnSfQLGG9Mi8h+/JM28FuEAIwPIEQIm5Kuy7SiiPUEcwxttUJzU eNnRLBaoQIXWBhXJtgb5H15JMJwrciqb3zZxnrFqvnTdv9ElEtTALI+3reeoGZ3E c69D7J84+xiXsHPEkW6NFQrIjhrLOYEaJCc9YjPu1Ukh9j8h7QEq4CkpSnFgSpDD U85YXOYDjkWxgiD4vvOlzY2l6ivwW9IeavqMeQGErZhHiBdIsgg= =l4qP -----END PGP SIGNATURE----- --=-=-=--