aboutsummaryrefslogtreecommitdiff
path: root/src/include/common/scram-common.h
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2018-01-30 16:50:30 -0500
committerPeter Eisentraut <peter_e@gmx.net>2018-01-30 16:50:30 -0500
commit38d485fdaa5739627b642303cc172acc1487b90a (patch)
tree889f12a0dcbd4c70e2bbd1a26b93a4286a38de25 /src/include/common/scram-common.h
parent99f6a17dd62aa5ed92df7e5c03077ddfc85381c8 (diff)
downloadpostgresql-38d485fdaa5739627b642303cc172acc1487b90a.tar.gz
postgresql-38d485fdaa5739627b642303cc172acc1487b90a.zip
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>
Diffstat (limited to 'src/include/common/scram-common.h')
-rw-r--r--src/include/common/scram-common.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/common/scram-common.h b/src/include/common/scram-common.h
index e1d742ba898..17373cce3ae 100644
--- a/src/include/common/scram-common.h
+++ b/src/include/common/scram-common.h
@@ -16,8 +16,8 @@
#include "common/sha2.h"
/* Name of SCRAM mechanisms per IANA */
-#define SCRAM_SHA256_NAME "SCRAM-SHA-256"
-#define SCRAM_SHA256_PLUS_NAME "SCRAM-SHA-256-PLUS" /* with channel binding */
+#define SCRAM_SHA_256_NAME "SCRAM-SHA-256"
+#define SCRAM_SHA_256_PLUS_NAME "SCRAM-SHA-256-PLUS" /* with channel binding */
/* Channel binding types */
#define SCRAM_CHANNEL_BINDING_TLS_UNIQUE "tls-unique"