File: authenticate.h

package info (click to toggle)
procmail 3.22-24%2Bdeb8u1
  • links: PTS
  • area: main
  • in suites: jessie
  • size: 2,116 kB
  • sloc: ansic: 9,885; sh: 1,957; makefile: 132
file content (34 lines) | stat: -rw-r--r-- 1,118 bytes parent folder | download | duplicates (21)
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
/*$Id: authenticate.h,v 1.5 1999/04/19 06:36:59 guenther Exp $*/

/* Generic authentication interface, substitute a suitable module to
   accomodate arbitrary other authentication databases */

typedef struct auth_identity auth_identity;

#ifndef P
#define P(x)	x
#define Q(x)	()
#endif

/*const*/auth_identity
 *auth_finduser P((char*const user,const int sock)),
 *auth_finduid Q((const uid_t uid,const int sock));
auth_identity
 *auth_newid P((void));
int
 auth_checkpassword P((const auth_identity*const pass,const char*const pw,
  const int allowemptypw)),
 auth_filledid P((const auth_identity*pass));
const char
 *auth_getsecret P((const auth_identity*const pass)),
 *auth_mailboxname P((auth_identity*const pass)),
 *auth_homedir P((const auth_identity*const pass)),
 *auth_shell P((const auth_identity*const pass)),
 *auth_username P((const auth_identity*const pass));
uid_t
 auth_whatuid P((const auth_identity*const pass)),
 auth_whatgid P((const auth_identity*const pass));
void
 auth_copyid P((auth_identity*newpass,const auth_identity*oldpass)),
 auth_freeid P((auth_identity*pass)),
 auth_end P((void));