Re: Support for NSS as a libpq TLS backend
Daniel Gustafsson <daniel@yesql.se>
From: Daniel Gustafsson <daniel@yesql.se>
To: Michael Paquier <michael@paquier.xyz>
Cc: Jacob Champion <pchampion@vmware.com>,
"hlinnaka@iki.fi" <hlinnaka@iki.fi>,
"pgsql-hackers@lists.postgresql.org" <pgsql-hackers@lists.postgresql.org>,
"andrew.dunstan@2ndquadrant.com" <andrew.dunstan@2ndquadrant.com>,
"thomas.munro@gmail.com" <thomas.munro@gmail.com>,
"sfrost@snowman.net" <sfrost@snowman.net>,
"andres@anarazel.de" <andres@anarazel.de>
Date: 2021-01-28T23:20:21Z
Lists: pgsql-hackers
> On 28 Jan 2021, at 07:06, Michael Paquier <michael@paquier.xyz> wrote: > On Wed, Jan 27, 2021 at 06:47:17PM +0000, Jacob Champion wrote: >> Since SSL is an obsolete term, and the choice of OpenSSL vs NSS vs >> [nothing] affects server operation (such as cryptohash) regardless of >> whether or not connection-level TLS is actually used, what would you >> all think about naming this option --with-crypto? I.e. >> >> --with-crypto=openssl >> --with-crypto=nss > > Looking around, curl has multiple switches for each lib with one named > --with-ssl for OpenSSL, but it needs to be able to use multiple > libraries at run time. To be fair, if we started over in curl I would push back on --with-ssl meaning OpenSSL but that ship has long since sailed. > I can spot that libssh2 uses what you are > proposing. It seems to me that --with-ssl is a bit more popular but > not by that much: wget, wayland, some apache stuff (it uses a path as > option value). Anyway, what you are suggesting sounds like a good in > the context of Postgres. Daniel? SSL is admittedly an obsolete technical term, but it's one that enough people have decided is interchangeable with TLS that it's not a hill worth dying on IMHO. Since postgres won't allow for using libnss or OpenSSL for cryptohash *without* compiling SSL/TLS support (used or not), I think --with-ssl=LIB is more descriptive and less confusing. -- Daniel Gustafsson https://vmware.com/
Commits
-
Add tab-completion for CREATE FOREIGN TABLE.
- 74527c3e022d 15.0 cited
-
Add tap tests for the schema publications.
- 6b0f6f79eef2 15.0 cited
-
Move Perl test modules to a better namespace
- b3b4d8e68ae8 15.0 cited
-
Adjust configure to insist on Perl version >= 5.8.3.
- 92e6a98c3636 15.0 cited
-
Simplify code related to compilation of SSL and OpenSSL
- 092b785fad3d 14.0 landed
-
Introduce --with-ssl={openssl} as a configure option
- fe61df7f82aa 14.0 landed
-
Implement support for bulk inserts in postgres_fdw
- b663a4136331 14.0 cited
-
Fix redundant error messages in client tools
- 6be725e70161 14.0 cited
-
doc: Apply more consistently <productname> markup for OpenSSL
- 089da3c4778f 14.0 landed
-
Check ssl_in_use flag when reporting statistics
- 6a5c750f3f72 14.0 cited