postgresql/src/include/libpq/hba.h

47 lines
928 B
C
Raw Normal View History

/*-------------------------------------------------------------------------
*
* hba.h
* Interface to hba.c
*
*
* $PostgreSQL: pgsql/src/include/libpq/hba.h,v 1.46 2007/07/10 13:14:21 mha Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef HBA_H
#define HBA_H
#include "nodes/pg_list.h"
typedef enum UserAuth
{
uaReject,
uaKrb5,
uaTrust,
uaIdent,
uaPassword,
uaCrypt,
uaMD5,
uaGSS
#ifdef USE_PAM
,uaPAM
#endif /* USE_PAM */
#ifdef USE_LDAP
2006-10-04 02:30:14 +02:00
,uaLDAP
#endif
} UserAuth;
typedef struct Port hbaPort;
extern List **get_role_line(const char *role);
extern void load_hba(void);
extern void load_ident(void);
extern void load_role(void);
extern int hba_getauthmethod(hbaPort *port);
extern int authident(hbaPort *port);
2005-10-15 04:49:52 +02:00
extern bool read_pg_database_line(FILE *fp, char *dbname, Oid *dboid,
Oid *dbtablespace, TransactionId *dbfrozenxid);
2005-10-15 04:49:52 +02:00
#endif /* HBA_H */