Fix typo in license headers
[oweals/cde.git] / cde / programs / dtlogin / pam_svc.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these libraries and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /* $XConsortium: pam_svc.h /main/3 1996/10/30 11:13:40 drk $ */
24 /*******************************************************************************
25 **
26 **  "@(#)pam_svc.h 1.4 95/09/12 
27 **
28 **  Copyright 1993, 1994, 1995 Sun Microsystems, Inc.  All rights reserved.
29 **
30 **  This file contains header info related to dtlogin use of PAM 
31 **  (Pluggable Authentication Module) library.
32 **
33 *******************************************************************************/
34 /*                                                                      *
35  * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
36  * (c) Copyright 1993, 1994 International Business Machines Corp.       *
37  * (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.                *
38  * (c) Copyright 1993, 1994 Novell, Inc.                                *
39  */
40
41 #ifndef _DTLOGIN_PAM_SVC_H
42 #define _DTLOGIN_PAM_SVC_H
43
44 #include <sys/types.h>
45
46 #define PAM_LOGIN_MAXTRIES 5
47 #define PAM_LOGIN_SLEEPTIME 4
48 #define PAM_LOGIN_DISABLETIME 20
49
50
51
52  
53 /*
54  *      External procedure declarations
55  */
56
57
58 extern int _DtAuthentication(char*, char*, char*, char*, char*);
59 extern int _DtAccounting(char*, char*, char[], char*, 
60                               char*, pid_t, int, int);
61 extern int _DtSetCred(char*, char *, uid_t, gid_t);
62 extern int _DtSetDevPerm(char *, uid_t, gid_t);
63 extern int _DtResetDevPerm(char *);
64
65 #ifdef sun
66 extern int audit_login_save_host(char *host);
67 extern int audit_login_save_ttyn(char *ttyn);
68 extern int audit_login_save_port(void);
69 extern int audit_login_success(void);
70 extern int audit_login_save_pw(struct passwd *pwd);
71 extern int audit_login_bad_pw(void);
72 extern int audit_login_maxtrys(void);
73 #endif /* sun */
74
75
76 #endif /* _DTLOGIN_PAM_SVC_H */