Mercurial > crates > nonstick
comparison src/handle.rs @ 171:e27c5c667a5a
Create full new types for return code and flags, separate end to end.
This plumbs the ReturnCode and RawFlags types through the places where
we call into or are called from PAM.
Also adds Sun documentation to the project.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Fri, 25 Jul 2025 20:52:14 -0400 |
parents | 77470e45e397 |
children | 9e4ce1631bd3 |
comparison
equal
deleted
inserted
replaced
170:f052e2417195 | 171:e27c5c667a5a |
---|---|
180 /// Ok(()) | 180 /// Ok(()) |
181 /// # } | 181 /// # } |
182 /// ``` | 182 /// ``` |
183 #[doc = man7!(3 pam_get_authtok)] | 183 #[doc = man7!(3 pam_get_authtok)] |
184 #[doc = manbsd!(3 pam_get_authtok)] | 184 #[doc = manbsd!(3 pam_get_authtok)] |
185 /// [pam_authtok_get]: https://smartos.org/man/7/pam_authtok_get | |
185 fn authtok(&mut self, prompt: Option<&OsStr>) -> Result<OsString>; | 186 fn authtok(&mut self, prompt: Option<&OsStr>) -> Result<OsString>; |
186 | 187 |
187 /// Retrieves the user's old authentication token when changing passwords. | 188 /// Retrieves the user's old authentication token when changing passwords. |
188 /// | 189 /// |
189 /// This should only be used by a *password-change* module. | 190 /// This should only be used by a *password-change* module. |