diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/common/scram-common.h | 7 | ||||
-rw-r--r-- | src/include/libpq/scram.h | 7 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/include/common/scram-common.h b/src/include/common/scram-common.h index 0c5ee04f263..857a60e71f4 100644 --- a/src/include/common/scram-common.h +++ b/src/include/common/scram-common.h @@ -15,6 +15,13 @@ #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 */ + +/* Channel binding types */ +#define SCRAM_CHANNEL_BINDING_TLS_UNIQUE "tls-unique" + /* Length of SCRAM keys (client and server) */ #define SCRAM_KEY_LEN PG_SHA256_DIGEST_LENGTH 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 |