Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YIuUq-0004HL-Tt for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Feb 2015 07:35:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YIuUq-0003XB-DY for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Feb 2015 07:35:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YIuUp-0003X5-JX for pgsql-hackers@postgreSQL.org; Wed, 04 Feb 2015 07:35:35 +0000 Received: from smtp-outbound-1.vmware.com ([208.91.2.12]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YIuUj-0006ae-HN for pgsql-hackers@postgreSQL.org; Wed, 04 Feb 2015 07:35:33 +0000 Received: from sc9-mailhost2.vmware.com (sc9-mailhost2.vmware.com [10.113.161.72]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id 04D7B28669; Tue, 3 Feb 2015 23:35:22 -0800 (PST) Received: from EX13-CAS-006.vmware.com (EX13-CAS-006.vmware.com [10.113.191.56]) by sc9-mailhost2.vmware.com (Postfix) with ESMTP id 01534B00AB; Tue, 3 Feb 2015 23:35:22 -0800 (PST) Received: from [192.168.1.90] (10.113.160.246) by EX13-MBX-024.vmware.com (10.113.191.44) with Microsoft SMTP Server (TLS) id 15.0.913.22; Tue, 3 Feb 2015 23:35:21 -0800 Message-ID: <54D1CBB5.6030300@vmware.com> Date: Wed, 4 Feb 2015 09:35:17 +0200 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0 MIME-Version: 1.0 To: Tom Lane CC: PostgreSQL-development Subject: Re: [COMMITTERS] pgsql: Add API functions to libpq to interrogate SSL related stuff. References: <12315.1423009403@sss.pgh.pa.us> In-Reply-To: <12315.1423009403@sss.pgh.pa.us> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.113.160.246] X-ClientProxiedBy: EX13-CAS-013.vmware.com (10.113.191.65) To EX13-MBX-024.vmware.com (10.113.191.44) X-Pg-Spam-Score: -6.9 (------) 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 On 02/04/2015 02:23 AM, Tom Lane wrote: > Heikki Linnakangas writes: >> Add API functions to libpq to interrogate SSL related stuff. > > This patch is one large brick shy of a load: it creates exported libpq > functions but fails to ensure they always exist. That's why jacana is > unhappy; though TBH I'm astonished that any non-ssl-enabled builds > are passing. Apparently missing library functions are less of a hard > error on Linux than they ought to be. Yeah, that's surprising. I don't see any option in ld man page to make it warn either. This also shows that we don't have any regression tests for this function. It's trivial, so I'm not worried about that, but in general it would be good to have a regression tests suite specifically for libpq. There are probably many other things that are not exercised by psql. > I think probably the exported functions need to be defined in fe-exec.c > or fe-connect.c, with bodies along the lines of > > #ifdef USE_OPENSSL > call OpenSSL-specific function > #else > return NULL > #endif > > (or whatever's appropriate when no SSL support). We do want these > functions to exist even in non-SSL-enabled builds. Sure. There are dummy versions of all the other SSL-related functions, I just missed PQsslAttributes. The OpenSSL-versions are in fe-secure-openssl.c, and the dummy ones are in fe-secure.c, within a "#ifndef USE_SSL" block. Fixed now. - Heikki -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers