Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / programs / dtlogin / pam_svc.h
1 /* $XConsortium: pam_svc.h /main/3 1996/10/30 11:13:40 drk $ */
2 /*******************************************************************************
3 **
4 **  "@(#)pam_svc.h 1.4 95/09/12 
5 **
6 **  Copyright 1993, 1994, 1995 Sun Microsystems, Inc.  All rights reserved.
7 **
8 **  This file contains header info related to dtlogin use of PAM 
9 **  (Pluggable Authentication Module) library.
10 **
11 *******************************************************************************/
12 /*                                                                      *
13  * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
14  * (c) Copyright 1993, 1994 International Business Machines Corp.       *
15  * (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.                *
16  * (c) Copyright 1993, 1994 Novell, Inc.                                *
17  */
18
19 #ifndef _DTLOGIN_PAM_SVC_H
20 #define _DTLOGIN_PAM_SVC_H
21
22 #include <sys/types.h>
23
24 #define PAM_LOGIN_MAXTRIES 5
25 #define PAM_LOGIN_SLEEPTIME 4
26 #define PAM_LOGIN_DISABLETIME 20
27
28
29
30  
31 /*
32  *      External procedure declarations
33  */
34
35
36 extern int _DtAuthentication(char*, char*, char*, char*, char*);
37 extern int _DtAccounting(char*, char*, char[], char*, 
38                               char*, pid_t, int, int);
39 extern int _DtSetCred(char*, char *, uid_t, gid_t);
40 extern int _DtSetDevPerm(char *, uid_t, gid_t);
41 extern int _DtResetDevPerm(char *);
42
43 #ifdef sun
44 extern int audit_login_save_host(char *host);
45 extern int audit_login_save_ttyn(char *ttyn);
46 extern int audit_login_save_port(void);
47 extern int audit_login_success(void);
48 extern int audit_login_save_pw(struct passwd *pwd);
49 extern int audit_login_bad_pw(void);
50 extern int audit_login_maxtrys(void);
51 #endif sun
52
53
54 #endif /* _DTLOGIN_PAM_SVC_H */