pgsql: Fix use of term "verifier"

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix use of term "verifier"
Date: 2019-10-12 19:42:36
Message-ID: E1iJNHg-0007k7-Ok@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix use of term "verifier"

Within the context of SCRAM, "verifier" has a specific meaning in the
protocol, per RFCs. The existing code used "verifier" differently, to
mean whatever is or would be stored in pg_auth.rolpassword.

Fix this by using the term "secret" for this, following RFC 5803.

Reviewed-by: Michael Paquier <michael(at)paquier(dot)xyz>
Discussion: https://www.postgresql.org/message-id/flat/be397b06-6e4b-ba71-c7fb-54cae84a7e18%402ndquadrant.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b4675a8ae2d0aaafeb136c46c92bb56eaf018d32

Modified Files
--------------
src/backend/libpq/auth-scram.c | 104 +++++++++++++++---------------
src/backend/libpq/auth.c | 2 +-
src/backend/libpq/crypt.c | 8 +--
src/common/scram-common.c | 4 +-
src/include/common/scram-common.h | 6 +-
src/include/libpq/crypt.h | 2 +-
src/include/libpq/scram.h | 8 +--
src/interfaces/libpq/fe-auth-scram.c | 6 +-
src/interfaces/libpq/fe-auth.c | 2 +-
src/interfaces/libpq/fe-auth.h | 2 +-
src/test/authentication/t/001_password.pl | 2 +-
src/test/regress/expected/password.out | 12 ++--
src/test/regress/sql/password.sql | 12 ++--
13 files changed, 85 insertions(+), 85 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alexander Korotkov 2019-10-13 01:52:21 Re: pgsql: Implement jsonpath .datetime() method
Previous Message Noah Misch 2019-10-12 07:23:58 pgsql: AIX: Stop adding option -qsrcmsg.