Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YGWRj-0000Kx-7c for pgsql-hackers@arkaria.postgresql.org; Wed, 28 Jan 2015 17:30:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YGWRh-0004eC-64 for pgsql-hackers@arkaria.postgresql.org; Wed, 28 Jan 2015 17:30:29 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YGWRe-0004e3-EK for pgsql-hackers@postgresql.org; Wed, 28 Jan 2015 17:30:26 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YGWRW-0006o7-EH for pgsql-hackers@postgresql.org; Wed, 28 Jan 2015 17:30:24 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id A8A5F5F799; Wed, 28 Jan 2015 12:30:17 -0500 (EST) Date: Wed, 28 Jan 2015 12:30:17 -0500 From: Stephen Frost To: Tom Lane Cc: Robert Haas , Heikki Linnakangas , Magnus Hagander , PostgreSQL-development Subject: Re: PQgetssl() and alternative SSL implementations Message-ID: <20150128173017.GZ3854@tamriel.snowman.net> References: <10419.1408475397@sss.pgh.pa.us> <53F3C87E.2080401@vmware.com> <54C8FCB0.4050304@vmware.com> <20150128165847.GY3854@tamriel.snowman.net> <32652.1422464685@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="5qKznMjKMQvXoTz3" Content-Disposition: inline In-Reply-To: <32652.1422464685@sss.pgh.pa.us> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-45-generic (x86_64) X-Uptime: 12:19:47 up 6 days, 17:08, 5 users, load average: 0.13, 0.08, 0.12 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -1.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 --5qKznMjKMQvXoTz3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Tom Lane (tgl@sss.pgh.pa.us) wrote: > Stephen Frost writes: > > What bothers me about this is that it punts SSL work to the application > > and requires that they be coded to work with both OpenSSL and whatever > > else we implement (eg: GnuTLS) to do anything but the most simple > > checks. That's a problem because people are *not* going to want to > > #include both OpenSSL and GnuTLS headers into their applications because > > they don't know which PG will be compiled with.. Not to mention that > > it'd be darn awkward to do so. >=20 > The point of this is to provide an escape hatch for people who really > want to do XYZ even though we provide no API for XYZ in libpq. Hopefully, > those people will be few and far between, because anything that's a really > common requirement should be catered for by libpq. I understand that, but 4 variables is pretty darn far from what an application developing for SSL is going to want. As I've mentioned before when this has been brought up, I'm of the opinion that we should be providing, from the start, the same set as Apache's SSL environment variables: The mod_ssl (OpenSSL-based) documentation: http://httpd.apache.org/docs/2.2/mod/mod_ssl.html For mod_gnutls, this is the list of SSL variables provided: http://www.outoforder.cc/projects/apache/mod_gnutls/docs/#environment-varia= bles Note that they're pretty much the same set, so providing them for OpenSSL isn't closing off the ability to provide GnuTLS in the future. To be clear, I'm not asking for all of this to happen in the first patch, but I'd like whomever is going forward with this to at least agree that they're going to try and cover the Apache set for whatever libraries are supported in the first major release we put out with this. Considering the example is already there, I'm really hopeful that isn't too difficult to do.. Thanks, Stephen --5qKznMjKMQvXoTz3 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJUyRypAAoJEO1sijiDR2RVOlkP/2MjD7WRqqLm4YrlR6IbG0Gb kvAdhVPwBynY+FQQyLiEACrruMnjEagmixPZW4tlO5TyW8La3nHoxmrlCBok3Gqy WE8f3YFc71tWBVdiekNnlJcgYfnABc+xIvfvqYdg+tMUSo/B5rHVf0PvSFdeH3Rx DvatwpyXlQf6XaCkeV7aCco7mGjINXC3ABWRmrujNZBCs0k7zRYOpAwp5flT7JHw srtoxrQJ8fRMP3xShga6qnJ6Ai3ohVcbLSb4gSPH2P1kL9aWjptM0CNyNonFOLBZ mJ2uO+fiuxV1jzKToQLU42RfNeioHmRRI7tfaERyh2P/kiXiJ00+FmTi++/RgNHO uyRFobROI4KU4Ik/VBFU+X45DLP1N2gNk8YjMg3F0TsvZRnX6H7Eto0oKOCREWzy imyEwcCIEWXYqQilsiEGavu27RSzoiD0861weba1ysreJBywjK13u7qmY9N12rFT J795qwDYU0pLa4WxWbYD922XcsWLzYcpdQeAUknNPuB2bWlISap04HJy+ayoFdOi FYElCDTU2nnef1MzQrS0M9Jol24xsbDimAyKkwp0P+Yaa6ihcrwZ9iODhCl8PC12 Z07F70uaIQTxFuizvk39GTZNJ4EN1cainnH5iCJQ3d7G/7dAPdih7MJaeG96xE8U PmD67sZqqSlXaJOZzYg+ =dUti -----END PGP SIGNATURE----- --5qKznMjKMQvXoTz3--