File: authpgsql.h

package info (click to toggle)
courier-authlib 0.58-4%2Betch3
  • links: PTS
  • area: main
  • in suites: etch
  • size: 16,212 kB
  • ctags: 1,896
  • sloc: ansic: 21,550; sh: 14,071; makefile: 866; perl: 842; cpp: 284
file content (37 lines) | stat: -rw-r--r-- 720 bytes parent folder | download | duplicates (7)
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	"courier_auth_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 *, const char *);

struct authinfo;

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

#endif