comparison libpam-sys/src/constants.rs @ 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 39760dfc9b3b
children
comparison
equal deleted inserted replaced
123:98a624cacd82 124:f469b8d9ad78
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;
197 199
198 define!( 200 define!(
199 /// A flag for `pam_sm_chauthtok`. 201 /// A flag for `pam_sm_chauthtok`.
200 PAM_PRELIM_CHECK = 0b0001; 202 PAM_PRELIM_CHECK = 0b0001;
201 PAM_UPDATE_AUTHTOK = 0b0010; 203 PAM_UPDATE_AUTHTOK = 0b0010;
202 PAM_CHANGE_EXPIRED_AUTHTOK = 0b0100; 204 PAM_CHANGE_EXPIRED_AUTHTOK = 0b0100;
203 ); 205 );
206 #[deprecated = "modern PAM implementations use PAM_PRELIM_CHECK"]
207 pub const PAM_CRED_PRELIM_CHECK: i32 = 0b0001;
204 } 208 }
205 209
206 #[cfg_pam_impl("OpenPam")] 210 #[cfg_pam_impl("OpenPam")]
207 pub use openpam::*; 211 pub use openpam::*;
208 #[cfg_pam_impl("OpenPam")] 212 #[cfg_pam_impl("OpenPam")]
266 ); 270 );
267 271
268 /// A flag for `pam_chauthtok`. 272 /// A flag for `pam_chauthtok`.
269 pub const PAM_NO_AUTHTOK_CHECK: i32 = 0b1000; 273 pub const PAM_NO_AUTHTOK_CHECK: i32 = 0b1000;
270 } 274 }
275