comparison src/constants.rs @ 86:23162cd399aa

fix THE REST OF THE CONSTANTS
author Paul Fisher <paul@pfish.zone>
date Tue, 10 Jun 2025 02:43:31 -0400
parents 5e14bb093851
children 05291b601f0a
comparison
equal deleted inserted replaced
85:5e14bb093851 86:23162cd399aa
108 /// The password service should only update those passwords 108 /// The password service should only update those passwords
109 /// that have aged. If this flag is _not_ passed, 109 /// that have aged. If this flag is _not_ passed,
110 /// the password service should update all passwords. 110 /// the password service should update all passwords.
111 /// 111 ///
112 /// This flag is only used by `change_authtok`. 112 /// This flag is only used by `change_authtok`.
113 const CHANGE_EXPIRED_AUTHTOK = pam_ffi::PAM_CHANGE_EXPIRED_AUTHTOK; 113 const CHANGE_EXPIRED_AUTHTOK = pam_ffi::PAM_CHANGE_EXPIRED_AUTHTOK as u32;
114
115 /// This is a preliminary check for password changing. 114 /// This is a preliminary check for password changing.
116 /// The password should not be changed. 115 /// The password should not be changed.
117 /// 116 ///
118 /// This is only used between PAM and a module. 117 /// This is only used between PAM and a module.
119 /// Applications may not use this flag. 118 /// Applications may not use this flag.
120 /// 119 ///
121 /// This flag is only used by `change_authtok`. 120 /// This flag is only used by `change_authtok`.
122 const PRELIMINARY_CHECK = pam_ffi::PAM_PRELIM_CHECK; 121 const PRELIMINARY_CHECK = pam_ffi::PAM_PRELIM_CHECK as u32;
123 /// The password should actuallyPR be updated. 122 /// The password should actuallyPR be updated.
124 /// This and [Self::PRELIMINARY_CHECK] are mutually exclusive. 123 /// This and [Self::PRELIMINARY_CHECK] are mutually exclusive.
125 /// 124 ///
126 /// This is only used between PAM and a module. 125 /// This is only used between PAM and a module.
127 /// Applications may not use this flag. 126 /// Applications may not use this flag.
128 /// 127 ///
129 /// This flag is only used by `change_authtok`. 128 /// This flag is only used by `change_authtok`.
130 const UPDATE_AUTHTOK = pam_ffi::PAM_UPDATE_AUTHTOK; 129 const UPDATE_AUTHTOK = pam_ffi::PAM_UPDATE_AUTHTOK as u32;
131 } 130 }
132 } 131 }
133 132
134 /// The Linux-PAM error return values. Success is an Ok [Result]. 133 /// The Linux-PAM error return values. Success is an Ok [Result].
135 /// 134 ///