Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aliZ7-0001qD-4Z for pgsql-hackers@arkaria.postgresql.org; Thu, 31 Mar 2016 19:47:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aliZ6-00086t-N3 for pgsql-hackers@arkaria.postgresql.org; Thu, 31 Mar 2016 19:47:36 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aliXk-0006bS-QT for pgsql-hackers@postgresql.org; Thu, 31 Mar 2016 19:46:12 +0000 Received: from smtp-auth.no-ip.com ([8.23.224.61] helo=out.smtp-auth.no-ip.com) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1aliXg-00069z-9G for pgsql-hackers@postgresql.org; Thu, 31 Mar 2016 19:46:12 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [200.83.202.40]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 1512F400F2B; Thu, 31 Mar 2016 12:45:58 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 1CABE5DB; Thu, 31 Mar 2016 16:45:56 -0300 (CLT) Date: Thu, 31 Mar 2016 16:45:56 -0300 From: Alvaro Herrera To: Robbie Harwood Cc: Michael Paquier , PostgreSQL mailing lists Subject: Re: [PATCH v9] GSSAPI encryption support Message-ID: <20160331194556.GA134261@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -1.1 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Robbie Harwood wrote: > Michael Paquier writes: > > + iov[0].iov_base = lenbuf; > > + iov[0].iov_len = 4; > > + iov[1].iov_base = output.value; > > + iov[1].iov_len = output.length; > > + > > + ret = writev(port->sock, iov, 2); > > > > writev and iovec are not present on Windows, so this code would never > > compile there, and it does not sound that this patch is a reason > > sufficient enough to drop support of GSSAPI on Windows. > > Um. Okay. I guess on Windows I'll make two write calls then, since the > only other option I see is to hit alloc again here. Hmm, I wouldn't push my luck by using writev here at all. We don't use writev/readv anywhere, and it's quite possible that they are not present on older Unixen which we still support. http://pubs.opengroup.org/onlinepubs/009695399/functions/writev.html says writev was introduced in "issue 4 version 2", which AFAICT is the 2004 version, but our baseline is SUSv2 (1997). So it's definitely not workable. > > + { > > + {"gss_encrypt", PGC_USERSET, CONN_AUTH_SECURITY, > > + gettext_noop("Require encryption for all GSSAPI connections."), > > + NULL, > > + GUC_NOT_IN_SAMPLE | GUC_DISALLOW_IN_FILE > > + }, > > + &gss_encrypt, false, check_gss_encrypt, assign_gss_encrypt, NULL > > + }, Why is this marked NOT_IN_SAMPLE? -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers