Mercurial > crates > nonstick
diff libpam-sys/libpam-sys-consts/src/constants.rs @ 170:f052e2417195
Completely avoid using libpam_sys if we're not actually linking.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Wed, 16 Jul 2025 18:45:20 -0400 |
parents | 4b3a5095f68c |
children |
line wrap: on
line diff
--- a/libpam-sys/libpam-sys-consts/src/constants.rs Tue Jul 15 01:32:21 2025 -0400 +++ b/libpam-sys/libpam-sys-consts/src/constants.rs Wed Jul 16 18:45:20 2025 -0400 @@ -70,6 +70,9 @@ PAM_MAX_RESP_SIZE = 512; ); +/// A flag for `pam_authenticate`. +pub const PAM_DISALLOW_NULL_AUTHTOK: i32 = 0x1; + #[cfg(pam_impl = "LinuxPam")] pub use linux_pam::*; #[cfg(pam_impl = "LinuxPam")] @@ -113,7 +116,6 @@ define!( /// A flag value. PAM_SILENT = 0x8000; - PAM_DISALLOW_NULL_AUTHTOK = 0x0001; PAM_ESTABLISH_CRED = 0x0002; PAM_DELETE_CRED = 0x0004; PAM_REINITIALIZE_CRED = 0x0008; @@ -213,9 +215,6 @@ /// A general flag for PAM operations. pub const PAM_SILENT: i32 = 0x80000000u32 as i32; - /// A flag for `pam_authenticate`. - pub const PAM_DISALLOW_NULL_AUTHTOK: i32 = 0b1; - define!( /// A flag for `pam_setcred`. PAM_ESTABLISH_CRED = 0b0001;