Eneboo - Documentación para desarrolladores
|
00001 /*------------------------------------------------------------------------- 00002 * 00003 * hba.h 00004 * Interface to hba.c 00005 * 00006 * 00007 * $PostgreSQL: pgsql/src/include/libpq/hba.h,v 1.41 2005/10/15 02:49:44 momjian Exp $ 00008 * 00009 *------------------------------------------------------------------------- 00010 */ 00011 #ifndef HBA_H 00012 #define HBA_H 00013 00014 #include "nodes/pg_list.h" 00015 00016 00017 typedef enum UserAuth 00018 { 00019 uaReject, 00020 uaKrb5, 00021 uaTrust, 00022 uaIdent, 00023 uaPassword, 00024 uaCrypt, 00025 uaMD5 00026 #ifdef USE_PAM 00027 ,uaPAM 00028 #endif /* USE_PAM */ 00029 } UserAuth; 00030 00031 typedef struct Port hbaPort; 00032 00033 extern List **get_role_line(const char *role); 00034 extern void load_hba(void); 00035 extern void load_ident(void); 00036 extern void load_role(void); 00037 extern int hba_getauthmethod(hbaPort *port); 00038 extern int authident(hbaPort *port); 00039 extern bool read_pg_database_line(FILE *fp, char *dbname, Oid *dboid, 00040 Oid *dbtablespace, TransactionId *dbfrozenxid, 00041 TransactionId *dbvacuumxid); 00042 00043 #endif /* HBA_H */