aboutsummaryrefslogtreecommitdiff
path: root/src/common/scram-common.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2019-10-12 21:17:34 +0200
committerPeter Eisentraut <peter@eisentraut.org>2019-10-12 21:41:59 +0200
commitb4675a8ae2d0aaafeb136c46c92bb56eaf018d32 (patch)
treebb1219cbd64f0498e13c5485736870cfc171d79a /src/common/scram-common.c
parent5f3d271d03b249f5c80e3d3ca946f62a33d7862f (diff)
downloadpostgresql-b4675a8ae2d0aaafeb136c46c92bb56eaf018d32.tar.gz
postgresql-b4675a8ae2d0aaafeb136c46c92bb56eaf018d32.zip
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@paquier.xyz> Discussion: https://www.postgresql.org/message-id/flat/be397b06-6e4b-ba71-c7fb-54cae84a7e18%402ndquadrant.com
Diffstat (limited to 'src/common/scram-common.c')
-rw-r--r--src/common/scram-common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/scram-common.c b/src/common/scram-common.c
index dff9723e67f..72bfa38a2e8 100644
--- a/src/common/scram-common.c
+++ b/src/common/scram-common.c
@@ -181,7 +181,7 @@ scram_ServerKey(const uint8 *salted_password, uint8 *result)
/*
- * Construct a verifier string for SCRAM, stored in pg_authid.rolpassword.
+ * Construct a SCRAM secret, for storing in pg_authid.rolpassword.
*
* The password should already have been processed with SASLprep, if necessary!
*
@@ -189,7 +189,7 @@ scram_ServerKey(const uint8 *salted_password, uint8 *result)
* palloc'd or malloc'd, so caller is responsible for freeing it.
*/
char *
-scram_build_verifier(const char *salt, int saltlen, int iterations,
+scram_build_secret(const char *salt, int saltlen, int iterations,
const char *password)
{
uint8 salted_password[SCRAM_KEY_LEN];