]> granicus.if.org Git - postgresql/blobdiff - src/common/scram-common.c
Fix use of term "verifier"
[postgresql] / src / common / scram-common.c
index dff9723e67fc825bd789b5962723bcac249a78b0..72bfa38a2e86b666972cbdca21bdd711c54058de 100644 (file)
@@ -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];