Convert preprocessor constants to anonymous enums.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@2 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
parent
5d027b0909
commit
9b64962713
|
@ -40,72 +40,80 @@
|
|||
/*
|
||||
* XSSO 5.2
|
||||
*/
|
||||
#define PAM_SUCCESS 0
|
||||
#define PAM_OPEN_ERR 1
|
||||
#define PAM_SYMBOL_ERR 2
|
||||
#define PAM_SERVICE_ERR 3
|
||||
#define PAM_SYSTEM_ERR 4
|
||||
#define PAM_BUF_ERR 5
|
||||
#define PAM_CONV_ERR 6
|
||||
#define PAM_PERM_DENIED 7
|
||||
#define PAM_MAXTRIES 8
|
||||
#define PAM_AUTH_ERR 9
|
||||
#define PAM_NEW_AUTHTOK_REQD 10
|
||||
#define PAM_CRED_INSUFFICIENT 11
|
||||
#define PAM_AUTHINFO_UNAVAIL 12
|
||||
#define PAM_USER_UNKNOWN 13
|
||||
#define PAM_CRED_UNAVAIL 14
|
||||
#define PAM_CRED_EXPIRED 15
|
||||
#define PAM_CRED_ERR 16
|
||||
#define PAM_ACCT_EXPIRED 17
|
||||
#define PAM_AUTHTOK_EXPIRED 18
|
||||
#define PAM_SESSION_ERR 19
|
||||
#define PAM_AUTHTOK_ERR 20
|
||||
#define PAM_AUTHTOK_RECOVERY_ERR 21
|
||||
#define PAM_AUTHTOK_LOCK_BUSY 22
|
||||
#define PAM_AUTHTOK_DISABLE_AGING 23
|
||||
#define PAM_NO_MODULE_DATA 24
|
||||
#define PAM_IGNORE 25
|
||||
#define PAM_ABORT 26
|
||||
#define PAM_TRY_AGAIN 27
|
||||
#define PAM_MODULE_UNKNOWN 28
|
||||
#define PAM_DOMAIN_UNKNOWN 29
|
||||
enum {
|
||||
PAM_SUCCESS = 0,
|
||||
PAM_OPEN_ERR = 1,
|
||||
PAM_SYMBOL_ERR = 2,
|
||||
PAM_SERVICE_ERR = 3,
|
||||
PAM_SYSTEM_ERR = 4,
|
||||
PAM_BUF_ERR = 5,
|
||||
PAM_CONV_ERR = 6,
|
||||
PAM_PERM_DENIED = 7,
|
||||
PAM_MAXTRIES = 8,
|
||||
PAM_AUTH_ERR = 9,
|
||||
PAM_NEW_AUTHTOK_REQD = 10,
|
||||
PAM_CRED_INSUFFICIENT = 11,
|
||||
PAM_AUTHINFO_UNAVAIL = 12,
|
||||
PAM_USER_UNKNOWN = 13,
|
||||
PAM_CRED_UNAVAIL = 14,
|
||||
PAM_CRED_EXPIRED = 15,
|
||||
PAM_CRED_ERR = 16,
|
||||
PAM_ACCT_EXPIRED = 17,
|
||||
PAM_AUTHTOK_EXPIRED = 18,
|
||||
PAM_SESSION_ERR = 19,
|
||||
PAM_AUTHTOK_ERR = 20,
|
||||
PAM_AUTHTOK_RECOVERY_ERR = 21,
|
||||
PAM_AUTHTOK_LOCK_BUSY = 22,
|
||||
PAM_AUTHTOK_DISABLE_AGING = 23,
|
||||
PAM_NO_MODULE_DATA = 24,
|
||||
PAM_IGNORE = 25,
|
||||
PAM_ABORT = 26,
|
||||
PAM_TRY_AGAIN = 27,
|
||||
PAM_MODULE_UNKNOWN = 28,
|
||||
PAM_DOMAIN_UNKNOWN = 29,
|
||||
};
|
||||
|
||||
/*
|
||||
* XSSO 5.3
|
||||
*/
|
||||
#define PAM_PROMPT_ECHO_OFF 1
|
||||
#define PAM_PROMPT_ECHO_ON 2
|
||||
#define PAM_ERROR_MSG 3
|
||||
#define PAM_TEXT_INFO 4
|
||||
#define PAM_MAX_NUM_MSG 32
|
||||
#define PAM_MAX_MSG_SIZE 512
|
||||
#define PAM_MAX_RESP_SIZE 512
|
||||
enum {
|
||||
PAM_PROMPT_ECHO_OFF = 1,
|
||||
PAM_PROMPT_ECHO_ON = 2,
|
||||
PAM_ERROR_MSG = 3,
|
||||
PAM_TEXT_INFO = 4,
|
||||
PAM_MAX_NUM_MSG = 32,
|
||||
PAM_MAX_MSG_SIZE = 512,
|
||||
PAM_MAX_RESP_SIZE = 512,
|
||||
};
|
||||
|
||||
/*
|
||||
* XSSO 5.4
|
||||
*/
|
||||
#define PAM_SILENT 0x80000000
|
||||
#define PAM_DISALLOW_NULL_AUTHTOK 0x1
|
||||
#define PAM_ESTABLISH_CRED 0x1
|
||||
#define PAM_DELETE_CRED 0x2
|
||||
#define PAM_REINITIALISE_CRED 0x4
|
||||
#define PAM_REFRESH_CRED 0x8
|
||||
#define PAM_CRED_PRELIM_CHECK 0x1
|
||||
#define PAM_UPDATE_AUTHTOK 0x2
|
||||
#define PAM_CHANGE_EXPIRED_AUTHTOK 0x4
|
||||
enum {
|
||||
PAM_SILENT = 0x80000000,
|
||||
PAM_DISALLOW_NULL_AUTHTOK = 0x1,
|
||||
PAM_ESTABLISH_CRED = 0x1,
|
||||
PAM_DELETE_CRED = 0x2,
|
||||
PAM_REINITIALISE_CRED = 0x4,
|
||||
PAM_REFRESH_CRED = 0x8,
|
||||
PAM_CRED_PRELIM_CHECK = 0x1,
|
||||
PAM_UPDATE_AUTHTOK = 0x2,
|
||||
PAM_CHANGE_EXPIRED_AUTHTOK = 0x4,
|
||||
};
|
||||
|
||||
/*
|
||||
* XSSO 5.5
|
||||
*/
|
||||
#define PAM_SERVICE 1
|
||||
#define PAM_USER 2
|
||||
#define PAM_TTY 3
|
||||
#define PAM_RHOST 4
|
||||
#define PAM_CONV 5
|
||||
#define PAM_AUTHTOK 6
|
||||
#define PAM_OLDAUTHTOK 7
|
||||
#define PAM_RUSER 8
|
||||
#define PAM_USER_PROMPT 9
|
||||
enum {
|
||||
PAM_SERVICE = 1,
|
||||
PAM_USER = 2,
|
||||
PAM_TTY = 3,
|
||||
PAM_RHOST = 4,
|
||||
PAM_CONV = 5,
|
||||
PAM_AUTHTOK = 6,
|
||||
PAM_OLDAUTHTOK = 7,
|
||||
PAM_RUSER = 8,
|
||||
PAM_USER_PROMPT = 9,
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue