Mercurial > crates > nonstick
annotate libpam-sys/libpam-sys-test/xsso_constants.h @ 124:f469b8d9ad78 default tip
Add tests for the original X/SSO constants list.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Mon, 30 Jun 2025 04:54:38 -0400 |
parents | |
children |
rev | line source |
---|---|
124
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
1 // This list of constants was literally cut-and-pasted from: |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
2 // https://pubs.opengroup.org/onlinepubs/8329799/chap5.htm |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
3 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
4 #define PAM_SUCCESS 0 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
5 #define PAM_OPEN_ERR 1 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
6 #define PAM_SYMBOL_ERR 2 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
7 #define PAM_SERVICE_ERR 3 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
8 #define PAM_SYSTEM_ERR 4 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
9 #define PAM_BUF_ERR 5 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
10 #define PAM_CONV_ERR 6 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
11 #define PAM_PERM_DENIED 7 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
12 #define PAM_MAXTRIES 8 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
13 #define PAM_AUTH_ERR 9 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
14 #define PAM_NEW_AUTHTOK_REQD 10 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
15 #define PAM_CRED_INSUFFICIENT 11 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
16 #define PAM_AUTHINFO_UNAVAIL 12 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
17 #define PAM_USER_UNKNOWN 13 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
18 #define PAM_CRED_UNAVAIL 14 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
19 #define PAM_CRED_EXPIRED 15 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
20 #define PAM_CRED_ERR 16 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
21 #define PAM_ACCT_EXPIRED 17 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
22 #define PAM_AUTHTOK_EXPIRED 18 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
23 #define PAM_SESSION_ERR 19 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
24 #define PAM_AUTHTOK_ERR 20 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
25 #define PAM_AUTHTOK_RECOVERY_ERR 21 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
26 #define PAM_AUTHTOK_LOCK_BUSY 22 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
27 #define PAM_AUTHTOK_DISABLE_AGING 23 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
28 #define PAM_NO_MODULE_DATA 24 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
29 #define PAM_IGNORE 25 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
30 #define PAM_ABORT 26 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
31 #define PAM_TRY_AGAIN 27 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
32 #define PAM_PROMPT_ECHO_OFF 1 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
33 #define PAM_PROMPT_ECHO_ON 2 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
34 #define PAM_ERROR_MSG 3 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
35 #define PAM_TEXT_INFO 4 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
36 #define PAM_MAX_NUM_MSG 32 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
37 #define PAM_MAX_MSG_SIZE 512 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
38 #define PAM_MAX_RESP_SIZE 512 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
39 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
40 #define PAM_SILENT 0x80000000 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
41 #define PAM_DISALLOW_NULL_AUTHTOK 0x1 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
42 #define PAM_ESTABLISH_CRED 0x1 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
43 #define PAM_DELETE_CRED 0x2 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
44 #define PAM_REINITIALISE_CRED 0x4 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
45 #define PAM_REFRESH_CRED 0x8 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
46 #define PAM_CRED_PRELIM_CHECK 0x1 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
47 #define PAM_UPDATE_AUTHTOK 0x2 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
48 #define PAM_CHANGE_EXPIRED_AUTHTOK 0x4 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
49 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
50 #define PAM_SERVICE 1 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
51 #define PAM_USER 2 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
52 #define PAM_TTY 3 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
53 #define PAM_RHOST 4 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
54 #define PAM_CONV 5 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
55 #define PAM_AUTHTOK 6 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
56 #define PAM_OLDAUTHTOK 7 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
57 #define PAM_RUSER 8 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
58 #define PAM_USER_PROMPT 9 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
59 |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
60 // Some of the names in here aren't used by anybody, though. |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
61 // These aliases are, though. |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
62 #define PAM_REINITIALIZE_CRED PAM_REINITIALISE_CRED |
f469b8d9ad78
Add tests for the original X/SSO constants list.
Paul Fisher <paul@pfish.zone>
parents:
diff
changeset
|
63 #define PAM_PRELIM_CHECK PAM_CRED_PRELIM_CHECK |