Mercurial > crates > nonstick
comparison libpam-sys/src/constants.rs @ 125:2b255c92417b
Introduce base PAM functions; use the real X/SSO PAM header for tests.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Mon, 30 Jun 2025 17:47:32 -0400 |
parents | f469b8d9ad78 |
children | c77846f3a979 |
comparison
equal
deleted
inserted
replaced
124:f469b8d9ad78 | 125:2b255c92417b |
---|---|
192 PAM_ESTABLISH_CRED = 0b0001; | 192 PAM_ESTABLISH_CRED = 0b0001; |
193 PAM_DELETE_CRED = 0b0010; | 193 PAM_DELETE_CRED = 0b0010; |
194 PAM_REINITIALIZE_CRED = 0b0100; | 194 PAM_REINITIALIZE_CRED = 0b0100; |
195 PAM_REFRESH_CRED = 0b1000; | 195 PAM_REFRESH_CRED = 0b1000; |
196 ); | 196 ); |
197 #[deprecated = "everybody spells it with a Z nowadays"] | |
198 pub const PAM_REINITIALISE_CRED: i32 = 0b0100; | |
199 | 197 |
200 define!( | 198 define!( |
201 /// A flag for `pam_sm_chauthtok`. | 199 /// A flag for `pam_sm_chauthtok`. |
202 PAM_PRELIM_CHECK = 0b0001; | 200 PAM_PRELIM_CHECK = 0b0001; |
203 PAM_UPDATE_AUTHTOK = 0b0010; | 201 PAM_UPDATE_AUTHTOK = 0b0010; |
204 PAM_CHANGE_EXPIRED_AUTHTOK = 0b0100; | 202 PAM_CHANGE_EXPIRED_AUTHTOK = 0b0100; |
205 ); | 203 ); |
206 #[deprecated = "modern PAM implementations use PAM_PRELIM_CHECK"] | |
207 pub const PAM_CRED_PRELIM_CHECK: i32 = 0b0001; | |
208 } | 204 } |
209 | 205 |
210 #[cfg_pam_impl("OpenPam")] | 206 #[cfg_pam_impl("OpenPam")] |
211 pub use openpam::*; | 207 pub use openpam::*; |
212 #[cfg_pam_impl("OpenPam")] | 208 #[cfg_pam_impl("OpenPam")] |
270 ); | 266 ); |
271 | 267 |
272 /// A flag for `pam_chauthtok`. | 268 /// A flag for `pam_chauthtok`. |
273 pub const PAM_NO_AUTHTOK_CHECK: i32 = 0b1000; | 269 pub const PAM_NO_AUTHTOK_CHECK: i32 = 0b1000; |
274 } | 270 } |
275 |