File: authpgsql.h

package info (click to toggle)
courier 0.47-4sarge5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 32,680 kB
  • ctags: 12,265
  • sloc: ansic: 164,045; cpp: 23,863; sh: 19,569; perl: 7,225; makefile: 4,192; yacc: 316; sed: 16
file content (37 lines) | stat: -rw-r--r-- 693 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef	authpgsql_h
#define	authpgsql_h

#include	"config.h"
#include	<stdlib.h>
#include	<string.h>
#include	<sys/types.h>
#include	<libpq-fe.h>

/*
#include	<errmsg.h>
*/
struct authpgsqluserinfo {
	char *username;
	char *fullname;
	char *cryptpw;
	char *clearpw;
	char *home;
	char *maildir;
	char *quota;
	char *options;
	uid_t uid;
	gid_t gid;
	} ;

extern struct authpgsqluserinfo *auth_pgsql_getuserinfo(const char *,
							const char *service);
extern void auth_pgsql_cleanup();

extern int auth_pgsql_setpass(const char *, const char *);

struct authinfo;

extern int auth_pgsql_pre(const char *, const char *,
                int (*)(struct authinfo *, void *), void *arg);

#endif