aboutsummaryrefslogtreecommitdiff
path: root/src/include/libpq/scram.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/libpq/scram.h')
-rw-r--r--src/include/libpq/scram.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/include/libpq/scram.h b/src/include/libpq/scram.h
index 2c879150dac..3eb3d7f31bb 100644
--- a/src/include/libpq/scram.h
+++ b/src/include/libpq/scram.h
@@ -15,17 +15,10 @@
#include "lib/stringinfo.h"
#include "libpq/libpq-be.h"
+#include "libpq/sasl.h"
-/* Status codes for message exchange */
-#define SASL_EXCHANGE_CONTINUE 0
-#define SASL_EXCHANGE_SUCCESS 1
-#define SASL_EXCHANGE_FAILURE 2
-
-/* Routines dedicated to authentication */
-extern void pg_be_scram_get_mechanisms(Port *port, StringInfo buf);
-extern void *pg_be_scram_init(Port *port, const char *selected_mech, const char *shadow_pass);
-extern int pg_be_scram_exchange(void *opaq, const char *input, int inputlen,
- char **output, int *outputlen, char **logdetail);
+/* SASL implementation callbacks */
+extern const pg_be_sasl_mech pg_be_scram_mech;
/* Routines to handle and check SCRAM-SHA-256 secret */
extern char *pg_be_scram_build_secret(const char *password);