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 1ioa4y-0004IO-2Q for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Jan 2020 21:38:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ioa4v-0007vI-EL for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Jan 2020 21:38:25 +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 1ioa4v-0007vB-5q for pgsql-hackers@lists.postgresql.org; Mon, 06 Jan 2020 21:38:25 +0000 Received: from mail-qk1-x742.google.com ([2607:f8b0:4864:20::742]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ioa4s-0007tW-Ex for pgsql-hackers@lists.postgresql.org; Mon, 06 Jan 2020 21:38:24 +0000 Received: by mail-qk1-x742.google.com with SMTP id c16so40841901qko.6 for ; Mon, 06 Jan 2020 13:38:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=kCjCyeFlb+VkLTJ++4xlfR96rfTSJwqSR6OFW91XtLs=; b=rUFe1vl+8JSrs67oRuN6v/cWvWg3QWMYtGR18oTx//rMhnqbnDA/fQ3LcgNxHbAJpN fTAyuv6drFkIOsGRPJE6srppSRCIpUR3N3jQeaapn5p4mipgbMcGAlmWTnrjfwGDmSp4 0j9XB6UoUqZIegqrcxkB8UFOoHUJLfki67Q72qZuTrJpXWMtsbOyF26TmLTp7JF2kKk/ UOcIXe5xkURdmLEQPECaCYwe4Jm4EYgTtLVgX1WGyM+4VyEVtOuHkFrfJcRHzb+ZFdj1 MBkmTqBC5b50U/vHKLlRt+kj+10kD3i3Wq9A5G7TRPzIx9+UcmJnn4vqbL7FNO7NazBG QPMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=kCjCyeFlb+VkLTJ++4xlfR96rfTSJwqSR6OFW91XtLs=; b=QZctvpBmFnuEDyd7mimxk/gvgkJmcLs5PSuNe8yCBeWfwNG4MxPd1tKLMJbPQLtkYq dwoItSfkIjRcOdYJ8cnQ74Fwz3lEJGua9F0Na5p5dgkWPcV2guZHE5nD7DQOMNmV6ksJ XLNwSLy8nrce39oF6mw2L+sks19Q8hCnqtUYrugCVyvOrngRV0dcma6tGgWKoNZzEUt0 /jqfJqSGsP4wW7M99rJeLDmYOPPlN9taRc5XqNnpwMxdi0jHuaYBMTlUX2fmvFk4/zGm lCOMfuq0xxlVC3kkSPwekVurNYCKxm1jby30JQqeDXkUO/06w7lwBN6dcn8Z6Dg7JMaG hNkA== X-Gm-Message-State: APjAAAXsbEoghMmsecTJmJZsv2mlxUmIgCFmi750XSRaypli6JJAo5u2 uHb2BKzHfITPov6R+q+IA43H9HAZ+JNRZ0qk+HPy4fITfIN1nClFQb0H/2LPejA1TFULqO/NrcC ALkQzytycLnku4W+39ThG6DglsKKB8W/uRfLedcnPwq0sin8HOdOlqUu8+gqy2HJYqwxWU1vbC6 agSGBM2MjybwJD3YwS X-Google-Smtp-Source: APXvYqx1K6gfkU0AhJI+g2IYyqeGu6peI2EtkgldW8zS3w/wSdiHLbQXMOLUW4kJRnGcLJKOsPAmog== X-Received: by 2002:a37:a70b:: with SMTP id q11mr84166153qke.393.1578346700618; Mon, 06 Jan 2020 13:38:20 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([179.56.30.174]) by smtp.gmail.com with ESMTPSA id s11sm21448858qkg.99.2020.01.06.13.38.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jan 2020 13:38:20 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id DEB4A300DAE; Mon, 6 Jan 2020 18:38:17 -0300 (-03) Date: Mon, 6 Jan 2020 18:38:17 -0300 From: Alvaro Herrera To: Stephen Frost Cc: Robbie Harwood , Pg Hackers Subject: Re: weird libpq GSSAPI comment Message-ID: <20200106213817.GA29411@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200106210322.GJ3195@tamriel.snowman.net> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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? > > 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). WFM. (I'm not sure why you uppercase Encryption, though.) -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services