diff options
author | Michael Paquier <michael@paquier.xyz> | 2022-11-30 08:38:36 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2022-11-30 08:38:36 +0900 |
commit | 20b796ad4bc1c296af94d46658e29d9dd85c2317 (patch) | |
tree | 02142cb6d1f6fc0b53dfba7d3a1c73a3e32432a2 /src | |
parent | c4a153d778318afbc0d2cd92067f49b62673444f (diff) | |
download | postgresql-20b796ad4bc1c296af94d46658e29d9dd85c2317.tar.gz postgresql-20b796ad4bc1c296af94d46658e29d9dd85c2317.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
Diffstat (limited to 'src')
-rw-r--r-- | src/interfaces/libpq/fe-auth-scram.c | 3 |
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 babdc061984..6b55bff69ae 100644 --- a/src/interfaces/libpq/fe-auth-scram.c +++ b/src/interfaces/libpq/fe-auth-scram.c @@ -768,7 +768,8 @@ pg_fe_scram_build_verifier(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) |