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
|
/*$Id: authenticate.h,v 1.8 1998/05/13 16:57:39 srb 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
extern char*auth_logname;
extern const char virtualhostdb[],virtualuser[];
/*const*/auth_identity
*auth_finduser P((char*const user,const sock)),
*auth_finduid Q((const uid_t uid,const sock));
auth_identity
*auth_newid P((void));
int
auth_checkpassword P((const auth_identity*const pass,const char*const pw,
const 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));
|