comparison 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
comparison
equal deleted inserted replaced
123:98a624cacd82 124:f469b8d9ad78
1 // This list of constants was literally cut-and-pasted from:
2 // https://pubs.opengroup.org/onlinepubs/8329799/chap5.htm
3
4 #define PAM_SUCCESS 0
5 #define PAM_OPEN_ERR 1
6 #define PAM_SYMBOL_ERR 2
7 #define PAM_SERVICE_ERR 3
8 #define PAM_SYSTEM_ERR 4
9 #define PAM_BUF_ERR 5
10 #define PAM_CONV_ERR 6
11 #define PAM_PERM_DENIED 7
12 #define PAM_MAXTRIES 8
13 #define PAM_AUTH_ERR 9
14 #define PAM_NEW_AUTHTOK_REQD 10
15 #define PAM_CRED_INSUFFICIENT 11
16 #define PAM_AUTHINFO_UNAVAIL 12
17 #define PAM_USER_UNKNOWN 13
18 #define PAM_CRED_UNAVAIL 14
19 #define PAM_CRED_EXPIRED 15
20 #define PAM_CRED_ERR 16
21 #define PAM_ACCT_EXPIRED 17
22 #define PAM_AUTHTOK_EXPIRED 18
23 #define PAM_SESSION_ERR 19
24 #define PAM_AUTHTOK_ERR 20
25 #define PAM_AUTHTOK_RECOVERY_ERR 21
26 #define PAM_AUTHTOK_LOCK_BUSY 22
27 #define PAM_AUTHTOK_DISABLE_AGING 23
28 #define PAM_NO_MODULE_DATA 24
29 #define PAM_IGNORE 25
30 #define PAM_ABORT 26
31 #define PAM_TRY_AGAIN 27
32 #define PAM_PROMPT_ECHO_OFF 1
33 #define PAM_PROMPT_ECHO_ON 2
34 #define PAM_ERROR_MSG 3
35 #define PAM_TEXT_INFO 4
36 #define PAM_MAX_NUM_MSG 32
37 #define PAM_MAX_MSG_SIZE 512
38 #define PAM_MAX_RESP_SIZE 512
39
40 #define PAM_SILENT 0x80000000
41 #define PAM_DISALLOW_NULL_AUTHTOK 0x1
42 #define PAM_ESTABLISH_CRED 0x1
43 #define PAM_DELETE_CRED 0x2
44 #define PAM_REINITIALISE_CRED 0x4
45 #define PAM_REFRESH_CRED 0x8
46 #define PAM_CRED_PRELIM_CHECK 0x1
47 #define PAM_UPDATE_AUTHTOK 0x2
48 #define PAM_CHANGE_EXPIRED_AUTHTOK 0x4
49
50 #define PAM_SERVICE 1
51 #define PAM_USER 2
52 #define PAM_TTY 3
53 #define PAM_RHOST 4
54 #define PAM_CONV 5
55 #define PAM_AUTHTOK 6
56 #define PAM_OLDAUTHTOK 7
57 #define PAM_RUSER 8
58 #define PAM_USER_PROMPT 9
59
60 // Some of the names in here aren't used by anybody, though.
61 // These aliases are, though.
62 #define PAM_REINITIALIZE_CRED PAM_REINITIALISE_CRED
63 #define PAM_PRELIM_CHECK PAM_CRED_PRELIM_CHECK