~vcs-imports/mammoth-replicator/trunk

« back to all changes in this revision

Viewing changes to src/include/libpq/hba.h

  • Committer: alvherre
  • Date: 2005-12-16 21:24:52 UTC
  • Revision ID: svn-v4:db760fc0-0f08-0410-9d63-cc6633f64896:trunk:1
Initial import of the REL8_0_3 sources from the Pgsql CVS repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*-------------------------------------------------------------------------
 
2
 *
 
3
 * hba.h
 
4
 *        Interface to hba.c
 
5
 *
 
6
 *
 
7
 * $PostgreSQL: pgsql/src/include/libpq/hba.h,v 1.35 2004-02-02 16:58:30 neilc Exp $
 
8
 *
 
9
 *-------------------------------------------------------------------------
 
10
 */
 
11
#ifndef HBA_H
 
12
#define HBA_H
 
13
 
 
14
#ifndef WIN32
 
15
#include <netinet/in.h>
 
16
#endif
 
17
 
 
18
#include "nodes/pg_list.h"
 
19
 
 
20
typedef enum UserAuth
 
21
{
 
22
        uaReject,
 
23
        uaKrb4,
 
24
        uaKrb5,
 
25
        uaTrust,
 
26
        uaIdent,
 
27
        uaPassword,
 
28
        uaCrypt,
 
29
        uaMD5
 
30
#ifdef USE_PAM
 
31
        ,uaPAM
 
32
#endif   /* USE_PAM */
 
33
} UserAuth;
 
34
 
 
35
typedef struct Port hbaPort;
 
36
 
 
37
extern List **get_user_line(const char *user);
 
38
extern void load_hba(void);
 
39
extern void load_ident(void);
 
40
extern void load_user(void);
 
41
extern void load_group(void);
 
42
extern int      hba_getauthmethod(hbaPort *port);
 
43
extern int      authident(hbaPort *port);
 
44
 
 
45
#endif