aboutsummaryrefslogtreecommitdiff
path: root/src/backend/libpq/auth-scram.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/libpq/auth-scram.c')
-rw-r--r--src/backend/libpq/auth-scram.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/backend/libpq/auth-scram.c b/src/backend/libpq/auth-scram.c
index 22103ce4795..15c3857f573 100644
--- a/src/backend/libpq/auth-scram.c
+++ b/src/backend/libpq/auth-scram.c
@@ -791,6 +791,7 @@ read_client_first_message(scram_state *state, char *input)
switch (*input)
{
case 'n':
+
/*
* The client does not support channel binding or has simply
* decided to not use it. In that case just let it go.
@@ -805,6 +806,7 @@ read_client_first_message(scram_state *state, char *input)
input++;
break;
case 'y':
+
/*
* The client supports channel binding and thinks that the server
* does not. In this case, the server must fail authentication if
@@ -827,12 +829,13 @@ read_client_first_message(scram_state *state, char *input)
input++;
break;
case 'p':
+
/*
* The client requires channel binding. Channel binding type
* follows, e.g., "p=tls-unique".
*/
{
- char *channel_binding_type;
+ char *channel_binding_type;
if (!state->ssl_in_use)
{
@@ -1139,8 +1142,8 @@ read_client_final_message(scram_state *state, char *input)
b64_message[b64_message_len] = '\0';
/*
- * Compare the value sent by the client with the value expected by
- * the server.
+ * Compare the value sent by the client with the value expected by the
+ * server.
*/
if (strcmp(channel_binding, b64_message) != 0)
ereport(ERROR,