diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-07-31 22:55:45 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-07-31 22:55:45 +0000 |
commit | 77896d1fc92d3cc48622d24a8fc0037186baeefd (patch) | |
tree | 0d3e6698a02f73a06d5fb032c3e063d9dfa39b3f /src/include/libpq/hba.h | |
parent | 0889bd00bd365ca252d75118378171fe5fd48289 (diff) |
Cleanup code for preparsing pg_hba.conf and pg_ident.conf. Store line
number in the data structure so that we can give at least a minimally
useful idea of where the mistake is when we issue syntax error messages.
Move the ClientAuthentication() call to where it should have been in
the first place, so that postmaster memory releasing can happen in a
reasonable place also. Update obsolete comments, correct one real bug
(auth_argument was not picked up correctly).
Diffstat (limited to 'src/include/libpq/hba.h')
-rw-r--r-- | src/include/libpq/hba.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/include/libpq/hba.h b/src/include/libpq/hba.h index f6493373e23..c1524946e3d 100644 --- a/src/include/libpq/hba.h +++ b/src/include/libpq/hba.h @@ -4,7 +4,7 @@ * Interface to hba.c * * - * $Id: hba.h,v 1.20 2001/07/30 14:50:24 momjian Exp $ + * $Id: hba.h,v 1.21 2001/07/31 22:55:45 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -40,9 +40,9 @@ typedef enum UserAuth typedef struct Port hbaPort; -int hba_getauthmethod(hbaPort *port); -int authident(struct sockaddr_in * raddr, struct sockaddr_in * laddr, - const char *postgres_username, const char *auth_arg); -void load_hba_and_ident(void); +extern int hba_getauthmethod(hbaPort *port); +extern int authident(struct sockaddr_in *raddr, struct sockaddr_in *laddr, + const char *postgres_username, const char *auth_arg); +extern void load_hba_and_ident(void); #endif |