Mercurial > crates > nonstick
diff pam/src/constants.rs @ 34:ec70822cbdef
Overhaul
author | Andy Caldwell <andrew.caldwell@metaswitch.com> |
---|---|
date | Sun, 24 Apr 2022 03:42:11 +0100 |
parents | 27730595f1ea |
children |
line wrap: on
line diff
--- a/pam/src/constants.rs Thu Jul 11 19:13:19 2019 -0700 +++ b/pam/src/constants.rs Sun Apr 24 03:42:11 2022 +0100 @@ -5,7 +5,6 @@ pub type PamFlag = c_uint; pub type PamItemType = c_int; pub type PamMessageStyle = c_int; -pub type AlwaysZero = c_int; // The Linux-PAM flags // see /usr/include/security/_pam_types.h @@ -17,36 +16,6 @@ pub const PAM_REFRESH_CRED: PamFlag = 0x0010; pub const PAM_CHANGE_EXPIRED_AUTHTOK: PamFlag = 0x0020; -// The Linux-PAM item types -// see /usr/include/security/_pam_types.h -/// The service name -pub const PAM_SERVICE: PamItemType = 1; -/// The user name -pub const PAM_USER: PamItemType = 2; -/// The tty name -pub const PAM_TTY: PamItemType = 3; -/// The remote host name -pub const PAM_RHOST: PamItemType = 4; -/// The pam_conv structure -pub const PAM_CONV: PamItemType = 5; -/// The authentication token (password) -pub const PAM_AUTHTOK: PamItemType = 6; -/// The old authentication token -pub const PAM_OLDAUTHTOK: PamItemType = 7; -/// The remote user name -pub const PAM_RUSER: PamItemType = 8; -/// the prompt for getting a username -pub const PAM_USER_PROMPT: PamItemType = 9; -/* Linux-PAM :extensionsPamItemType = */ -/// app supplied function to override failure delays -pub const PAM_FAIL_DELAY: PamItemType = 10; -/// X :display name -pub const PAM_XDISPLAY: PamItemType = 11; -/// X :server authentication data -pub const PAM_XAUTHDATA: PamItemType = 12; -/// The type for pam_get_authtok -pub const PAM_AUTHTOK_TYPE: PamItemType = 13; - // Message styles pub const PAM_PROMPT_ECHO_OFF: PamMessageStyle = 1; pub const PAM_PROMPT_ECHO_ON: PamMessageStyle = 2;