summaryrefslogtreecommitdiff
path: root/src/include/libpq
diff options
context:
space:
mode:
authorMarc G. Fournier1997-12-30 02:26:56 +0000
committerMarc G. Fournier1997-12-30 02:26:56 +0000
commit3c1332e57397713a1ee258a33654755471493948 (patch)
tree0a8f7f77b5b661b8a7deb7f18dd07e204ad359fb /src/include/libpq
parenta544b605e25cf4dc8e107a697b8cc28c8132e125 (diff)
Slightly delayed patches from Todd...damn holidays :)
o A new patch that contains the following changes: -- The pg_pwd file is now cached in the postmaster's memory. -- pg_pwd is reloaded when the postmaster detects a flag file creat()'ed by a backend. -- qsort() is used to sort loaded password entries, and bsearch() is is used to find entries in the pg_pwd cache. -- backends now copy the pg_user relation to pg_pwd.pid, and then rename the temp file to be pg_pwd. -- The delimiter for pg_pwd has been changed to a tab character.
Diffstat (limited to 'src/include/libpq')
-rw-r--r--src/include/libpq/crypt.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/libpq/crypt.h b/src/include/libpq/crypt.h
index 35e65ed642f..45600394e03 100644
--- a/src/include/libpq/crypt.h
+++ b/src/include/libpq/crypt.h
@@ -12,8 +12,15 @@
#include <libpq/pqcomm.h>
#define CRYPT_PWD_FILE "pg_pwd"
+#define CRYPT_PWD_FILE_SEPCHAR "'\\t'"
+#define CRYPT_PWD_FILE_SEPSTR "\t"
+#define CRYPT_PWD_RELOAD_SUFX ".reload"
+
+extern char** pwd_cache;
+extern int pwd_cache_count;
extern char* crypt_getpwdfilename(void);
+extern char* crypt_getpwdreloadfilename();
extern MsgType crypt_salt(const char* user);
extern int crypt_verify(Port* port, const char* user, const char* pgpass);