]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/libpam/libpam/include/security/_pam_compat.h
This commit was generated by cvs2svn to compensate for changes in r57419,
[FreeBSD/FreeBSD.git] / contrib / libpam / libpam / include / security / _pam_compat.h
1 #ifndef _PAM_COMPAT_H
2 #define _PAM_COMPAT_H
3
4 /*
5  * This file was contributed by Derrick J Brashear <shadow@dementia.org>
6  *
7  * A number of operating systems have started to implement PAM.
8  * unfortunately, they have a different set of numeric values for
9  * certain constants.  This file is included for compatibility's sake.
10  */
11
12 /* Solaris uses different constants. We redefine to those here */
13 #if defined(solaris) || (defined(__SVR4) && defined(sun))
14
15 /* generic for pam_* functions */
16 # undef PAM_SILENT
17 # define PAM_SILENT              0x80000000
18
19 /* flags for pam_chauthtok() */
20 # undef PAM_PRELIM_CHECK
21 # define PAM_PRELIM_CHECK        0x1
22
23 # undef PAM_UPDATE_AUTHTOK
24 # define PAM_UPDATE_AUTHTOK      0x2
25
26 /* flags for pam_setcred() */
27 # undef PAM_ESTABLISH_CRED
28 # define PAM_ESTABLISH_CRED      0x1
29
30 # undef PAM_DELETE_CRED
31 # define PAM_DELETE_CRED         0x2
32
33 # undef PAM_REINITIALIZE_CRED
34 # define PAM_REINITIALIZE_CRED   0x4
35
36 # define PAM_REFRESH_CRED        0x8
37 # undef PAM_REFRESH_CRED
38
39 /* another binary incompatibility comes from the return codes! */
40
41 # undef PAM_CONV_ERR
42 # define PAM_CONV_ERR            6
43
44 # undef PAM_PERM_DENIED
45 # define PAM_PERM_DENIED         7
46
47 # undef PAM_MAXTRIES
48 # define PAM_MAXTRIES            8
49
50 # undef PAM_AUTH_ERR
51 # define PAM_AUTH_ERR            9
52
53 # undef PAM_NEW_AUTHTOK_REQD
54 # define PAM_NEW_AUTHTOK_REQD    10
55
56 # undef PAM_CRED_INSUFFICIENT
57 # define PAM_CRED_INSUFFICIENT   11
58
59 # undef PAM_AUTHINFO_UNAVAIL
60 # define PAM_AUTHINFO_UNAVAIL    12
61
62 # undef PAM_USER_UNKNOWN
63 # define PAM_USER_UNKNOWN        13
64
65 # undef PAM_CRED_UNAVAIL
66 # define PAM_CRED_UNAVAIL        14
67
68 # undef PAM_CRED_EXPIRED
69 # define PAM_CRED_EXPIRED        15
70
71 # undef PAM_CRED_ERR
72 # define PAM_CRED_ERR            16
73
74 # undef PAM_ACCT_EXPIRED
75 # define PAM_ACCT_EXPIRED        17
76
77 # undef PAM_AUTHTOK_EXPIRED
78 # define PAM_AUTHTOK_EXPIRED     18
79
80 # undef PAM_SESSION_ERR
81 # define PAM_SESSION_ERR         19
82
83 # undef PAM_AUTHTOK_ERR
84 # define PAM_AUTHTOK_ERR           20
85
86 # undef PAM_AUTHTOK_RECOVERY_ERR
87 # define PAM_AUTHTOK_RECOVERY_ERR  21
88
89 # undef PAM_AUTHTOK_LOCK_BUSY
90 # define PAM_AUTHTOK_LOCK_BUSY     22
91
92 # undef PAM_AUTHTOK_DISABLE_AGING
93 # define PAM_AUTHTOK_DISABLE_AGING 23
94
95 # undef PAM_NO_MODULE_DATA
96 # define PAM_NO_MODULE_DATA      24
97
98 # undef PAM_IGNORE
99 # define PAM_IGNORE              25
100
101 # undef PAM_ABORT
102 # define PAM_ABORT               26
103
104 # undef PAM_TRY_AGAIN
105 # define PAM_TRY_AGAIN           27
106
107 #endif /* defined(solaris) || (defined(__SVR4) && defined(sun)) */
108
109 #endif /* _PAM_COMPAT_H */