summaryrefslogtreecommitdiff
path: root/src/common/scram-common.c
diff options
context:
space:
mode:
authorTom Lane2017-05-17 00:36:35 +0000
committerTom Lane2017-05-17 00:36:35 +0000
commitc079673dcb7f210617c9fc1470e6bf166d8a2971 (patch)
treecd8a2c6834da8d1157f11a38cb6272dc48e42dd1 /src/common/scram-common.c
parentddd243584a0f353bbaba260d976cc41b251bbf21 (diff)
Preventive maintenance in advance of pgindent run.
Reformat various places in which pgindent will make a mess, and fix a few small violations of coding style that I happened to notice while perusing the diffs from a pgindent dry run. There is one actual bug fix here: the need-to-enlarge-the-buffer code path in icu_convert_case was obviously broken. Perhaps it's unreachable in our usage? Or maybe this is just sadly undertested.
Diffstat (limited to 'src/common/scram-common.c')
-rw-r--r--src/common/scram-common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/scram-common.c b/src/common/scram-common.c
index 77b54c8a5e7..295507a0adc 100644
--- a/src/common/scram-common.c
+++ b/src/common/scram-common.c
@@ -213,9 +213,10 @@ scram_build_verifier(const char *salt, int saltlen, int iterations,
scram_ServerKey(salted_password, server_key);
- /*
+ /*----------
* The format is:
* SCRAM-SHA-256$<iteration count>:<salt>$<StoredKey>:<ServerKey>
+ *----------
*/
maxlen = strlen("SCRAM-SHA-256") + 1
+ 10 + 1 /* iteration count */