summaryrefslogtreecommitdiff
path: root/src/include/libpq/auth.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/libpq/auth.h')
-rw-r--r--src/include/libpq/auth.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/libpq/auth.h b/src/include/libpq/auth.h
index 137bee7c455..9916c99df17 100644
--- a/src/include/libpq/auth.h
+++ b/src/include/libpq/auth.h
@@ -28,4 +28,10 @@ extern void sendAuthRequest(Port *port, AuthRequest areq, const char *extradata,
typedef void (*ClientAuthentication_hook_type) (Port *, int);
extern PGDLLIMPORT ClientAuthentication_hook_type ClientAuthentication_hook;
+/* hook type for password manglers */
+typedef char *(*auth_password_hook_typ) (char *input);
+
+/* Default LDAP password mutator hook, can be overridden by a shared library */
+extern PGDLLIMPORT auth_password_hook_typ ldap_password_hook;
+
#endif /* AUTH_H */