Re: Support for NSS as a libpq TLS backend
Daniel Gustafsson <daniel@yesql.se>
From: Daniel Gustafsson <daniel@yesql.se>
To: Jacob Champion <pchampion@vmware.com>
Cc: Heikki Linnakangas <hlinnaka@iki.fi>,
Andres Freund <andres@anarazel.de>,
Postgres hackers <pgsql-hackers@lists.postgresql.org>,
Michael Paquier <michael@paquier.xyz>,
Andrew Dunstan <andrew.dunstan@2ndquadrant.com>,
Stephen Frost <sfrost@snowman.net>,
Thomas Munro <thomas.munro@gmail.com>
Date: 2020-11-17T15:00:53Z
Lists: pgsql-hackers
Attachments
- v20-0001-NSS-Frontend-Backend-and-build-infrastructure.patch (application/octet-stream) patch v20-0001
- v20-0002-NSS-Testharness-updates.patch (application/octet-stream) patch v20-0002
- v20-0003-NSS-pg_strong_random-support.patch (application/octet-stream) patch v20-0003
- v20-0004-NSS-Documentation.patch (application/octet-stream) patch v20-0004
- v20-0005-NSS-contrib-modules.patch (application/octet-stream) patch v20-0005
> On 16 Nov 2020, at 21:00, Jacob Champion <pchampion@vmware.com> wrote: > On Nov 13, 2020, at 4:14 AM, Daniel Gustafsson <daniel@yesql.se> wrote: >> I've incorporated this patch as well as the previous patch for the assertion >> failure on private callback data into the attached v19 patchset. I also did a >> spellcheck and pgindent run on it for ease of review. > > Commit 6be725e70 got rid of some psql error messaging that the tests > were keying off of, so there are a few new failures after a rebase onto > latest master. > > I've attached a patch that gets the SCRAM tests a little further > (certificate hashing was caught in an infinite loop). I also added error > checks to those loops, along the lines of the existing OpenSSL > implementation: if a suitable digest can't be found, the user will see > an error like > > psql: error: could not find digest for OID 'PKCS #1 SHA-256 With RSA Encryption' > > It's a little verbose but I don't think this case should come up in > normal practice. Nice, thanks for the fix! I've incorporated your patch into the attached v20 which also fixes client side error reporting to be more readable. The SCRAM tests are now also hooked up, albeit with SKIP blocks for NSS, so they can start getting fixed. cheers ./daniel
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