mirror of
https://github.com/postgres/postgres.git
synced 2025-11-19 13:42:17 +03:00
Fix up references to scram-sha-256
pg_hba_file_rules erroneously reported this as scram-sha256. Fix that. To avoid future errors and confusion, also adjust documentation links and internal symbols to have a separator between "sha" and "256". Reported-by: Christophe Courtois <christophe.courtois@dalibo.com> Author: Michael Paquier <michael.paquier@gmail.com>
This commit is contained in:
@@ -532,7 +532,7 @@ pg_SASL_init(PGconn *conn, int payloadlen)
|
||||
/*
|
||||
* Do we support this mechanism?
|
||||
*/
|
||||
if (strcmp(mechanism_buf.data, SCRAM_SHA256_NAME) == 0)
|
||||
if (strcmp(mechanism_buf.data, SCRAM_SHA_256_NAME) == 0)
|
||||
{
|
||||
char *password;
|
||||
|
||||
@@ -550,7 +550,7 @@ pg_SASL_init(PGconn *conn, int payloadlen)
|
||||
conn->sasl_state = pg_fe_scram_init(conn->pguser, password);
|
||||
if (!conn->sasl_state)
|
||||
goto oom_error;
|
||||
selected_mechanism = SCRAM_SHA256_NAME;
|
||||
selected_mechanism = SCRAM_SHA_256_NAME;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user