summaryrefslogtreecommitdiff
path: root/src/include/libpq/scram.h
diff options
context:
space:
mode:
authorPeter Eisentraut2017-12-18 21:59:10 +0000
committerPeter Eisentraut2017-12-18 21:59:48 +0000
commit25d532698d74f4adb34f013f1a287a0029e31fb1 (patch)
tree240d7d869e328880726f7c1453652d14ad7890b8 /src/include/libpq/scram.h
parent53cba77b53f98255bfbba9d2612d1a5685feec52 (diff)
Move SCRAM-related name definitions to scram-common.h
Mechanism names for SCRAM and channel binding names have been included in scram.h by the libpq frontend code, and this header references a set of routines which are only used by the backend. scram-common.h is on the contrary usable by both the backend and libpq, so getting those names from there seems more reasonable. Author: Michael Paquier <[email protected]>
Diffstat (limited to 'src/include/libpq/scram.h')
-rw-r--r--src/include/libpq/scram.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/include/libpq/scram.h b/src/include/libpq/scram.h
index 91f1e0f2c7e..2c245813d65 100644
--- a/src/include/libpq/scram.h
+++ b/src/include/libpq/scram.h
@@ -13,13 +13,6 @@
#ifndef PG_SCRAM_H
#define PG_SCRAM_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 */
-
-/* Channel binding types */
-#define SCRAM_CHANNEL_BINDING_TLS_UNIQUE "tls-unique"
-
/* Status codes for message exchange */
#define SASL_EXCHANGE_CONTINUE 0
#define SASL_EXCHANGE_SUCCESS 1