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 1hC3Xs-0004JU-Ob for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Apr 2019 14:40:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hC3Xr-0000I2-G8 for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Apr 2019 14:40:47 +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 1hC3Xr-0000Hd-7G for pgsql-hackers@lists.postgresql.org; Thu, 04 Apr 2019 14:40:47 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hC3Xo-0003qn-My for pgsql-hackers@postgresql.org; Thu, 04 Apr 2019 14:40:46 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x34EeU5Z005407; Thu, 4 Apr 2019 10:40:30 -0400 From: Tom Lane To: Stephen Frost cc: Peter Eisentraut , Alvaro Herrera , David Steele , Joe Conway , Magnus Hagander , Michael Paquier , Nico Williams , PostgreSQL-development , Robbie Harwood Subject: Re: [PATCH v20] GSSAPI encryption support In-reply-to: References: <5ec3f734-810e-36e0-030f-af92efe135da@2ndquadrant.com> <20190223162751.GO6197@tamriel.snowman.net> <1f799b02-d766-0328-45d6-73e5674d0bc2@2ndquadrant.com> <500b1be7-d0aa-96a2-9982-d748609faff5@joeconway.com> <20190403144332.GD6197@tamriel.snowman.net> <7b7035e0-3691-ca63-0957-25d17dc11514@2ndquadrant.com> Comments: In-reply-to Stephen Frost message dated "Thu, 04 Apr 2019 07:50:33 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <5405.1554388830.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 04 Apr 2019 10:40:30 -0400 Message-ID: <5406.1554388830@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Stephen Frost writes: > On Thu, Apr 4, 2019 at 05:20 Peter Eisentraut < > peter.eisentraut@2ndquadrant.com> wrote: >> Kerberos tests are now failing for me (macOS). > Interesting, they work locally for me on Ubuntu. Unfortunately, I don=E2= =80=99t > have macOS. This only happens when encryption is being used, presumably= ? > GSS authentication is still working fine? The kerberos test suite passes for me on RHEL6 (kerberos 1.10.3), but I observe some compiler warnings that need to be dealt with: $ ./configure --with-gssapi ... $ time make -j8 -s be-secure-gssapi.c:597: warning: no previous prototype for 'be_gssapi_get_= auth' be-secure-gssapi.c:609: warning: no previous prototype for 'be_gssapi_get_= enc' be-secure-gssapi.c:621: warning: no previous prototype for 'be_gssapi_get_= princ' pgstat.c: In function 'pgstat_bestart': pgstat.c:2986: warning: implicit declaration of function 'be_gssapi_get_au= th' pgstat.c:2987: warning: implicit declaration of function 'be_gssapi_get_en= c' pgstat.c:2990: warning: implicit declaration of function 'be_gssapi_get_pr= inc' pgstat.c:2990: warning: passing argument 2 of 'strlcpy' makes pointer from= integer without a cast ../../../src/include/port.h:429: note: expected 'const char *' but argumen= t is of type 'int' All of PostgreSQL successfully made. Ready to install. I'm not very sure why the integer/pointer confusion in pgstat_bestart doesn't cause hard crashes when using gss auth --- or does this suite not actually test that? regards, tom lane