aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2022-11-30 08:38:30 +0900
committerMichael Paquier <michael@paquier.xyz>2022-11-30 08:38:30 +0900
commitcdea14a245b17df6d86f6c1193bc3726d4686605 (patch)
tree9ac3f032b5f8bf085f3e43ec8b2fef4f134e9544
parent06998eab16b2165b5f27014a0843b75e377cc63e (diff)
downloadpostgresql-cdea14a245b17df6d86f6c1193bc3726d4686605.tar.gz
postgresql-cdea14a245b17df6d86f6c1193bc3726d4686605.zip
Fix comment in fe-auth-scram.c
The frontend-side routine in charge of building a SCRAM verifier mentioned that the restrictions applying to SASLprep on the password with the encoding are described at the top of fe-auth-scram.c, but this information is in auth-scram.c. This is wrong since 8f8b9be, so backpatch all the way down as this is an important documentation bit. Spotted while reviewing a different patch. Backpatch-through: 11
-rw-r--r--src/interfaces/libpq/fe-auth-scram.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/interfaces/libpq/fe-auth-scram.c b/src/interfaces/libpq/fe-auth-scram.c
index 5881386e374..cf3195e5815 100644
--- a/src/interfaces/libpq/fe-auth-scram.c
+++ b/src/interfaces/libpq/fe-auth-scram.c
@@ -879,7 +879,8 @@ pg_fe_scram_build_secret(const char *password)
/*
* Normalize the password with SASLprep. If that doesn't work, because
* the password isn't valid UTF-8 or contains prohibited characters, just
- * proceed with the original password. (See comments at top of file.)
+ * proceed with the original password. (See comments at the top of
+ * auth-scram.c.)
*/
rc = pg_saslprep(password, &prep_password);
if (rc == SASLPREP_OOM)