mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Misc cleanup of SCRAM code.
* Remove is_scram_verifier() function. It was unused.
* Fix sanitize_char() function, used in error messages on protocol
violations, to print bytes >= 0x7F correctly.
* Change spelling of scram_MockSalt() function to be more consistent with
the surroundings.
* Change a few more references to "server proof" to "server signature" that
I missed in commit d981074c24
.
This commit is contained in:
@ -212,7 +212,7 @@ pg_fe_scram_exchange(void *opaq, char *input, int inputlen,
|
||||
break;
|
||||
|
||||
case FE_SCRAM_PROOF_SENT:
|
||||
/* Receive server proof */
|
||||
/* Receive server signature */
|
||||
if (!read_server_final_message(state, input, errorMessage))
|
||||
goto error;
|
||||
|
||||
@ -228,7 +228,7 @@ pg_fe_scram_exchange(void *opaq, char *input, int inputlen,
|
||||
{
|
||||
*success = false;
|
||||
printfPQExpBuffer(errorMessage,
|
||||
libpq_gettext("invalid server proof\n"));
|
||||
libpq_gettext("invalid server signature\n"));
|
||||
}
|
||||
*done = true;
|
||||
state->state = FE_SCRAM_FINISHED;
|
||||
|
Reference in New Issue
Block a user