diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/common/md5.h | 1 | ||||
-rw-r--r-- | src/include/libpq/scram.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/include/common/md5.h b/src/include/common/md5.h index cd54c874b11..80b7475f406 100644 --- a/src/include/common/md5.h +++ b/src/include/common/md5.h @@ -16,6 +16,7 @@ #ifndef PG_MD5_H #define PG_MD5_H +#define MD5_PASSWD_CHARSET "0123456789abcdef" #define MD5_PASSWD_LEN 35 extern bool pg_md5_hash(const void *buff, size_t len, char *hexsum); diff --git a/src/include/libpq/scram.h b/src/include/libpq/scram.h index d7f4c094c9d..bc297e2a336 100644 --- a/src/include/libpq/scram.h +++ b/src/include/libpq/scram.h @@ -29,6 +29,8 @@ extern int pg_be_scram_exchange(void *opaq, const char *input, int inputlen, /* Routines to handle and check SCRAM-SHA-256 verifier */ extern char *pg_be_scram_build_verifier(const char *password); +extern bool parse_scram_verifier(const char *verifier, int *iterations, char **salt, + uint8 *stored_key, uint8 *server_key); extern bool scram_verify_plain_password(const char *username, const char *password, const char *verifier); |