1 /*-------------------------------------------------------------------------
7 * $PostgreSQL: pgsql/src/include/libpq/hba.h,v 1.59 2009/10/01 01:58:58 tgl Exp $
9 *-------------------------------------------------------------------------
14 #include "nodes/pg_list.h"
15 #include "libpq/pqcomm.h"
33 typedef enum IPCompareMethod
54 struct sockaddr_storage addr;
55 struct sockaddr_storage mask;
56 IPCompareMethod ip_cmp_method;
67 char *krb_server_hostname;
72 /* kluge to avoid including libpq/libpq-be.h here */
73 typedef struct Port hbaPort;
75 extern bool load_hba(void);
76 extern void load_ident(void);
77 extern int hba_getauthmethod(hbaPort *port);
78 extern int check_usermap(const char *usermap_name,
79 const char *pg_role, const char *auth_user,
81 extern bool pg_isblank(const char c);