Mercurial > crates > nonstick
diff src/libpam/handle.rs @ 156:66e662cde087 default tip
fix return type of get_authtok for weird PAMs
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Tue, 08 Jul 2025 01:04:30 -0400 |
parents | ab8020566cd9 |
children |
line wrap: on
line diff
--- a/src/libpam/handle.rs Tue Jul 08 00:49:38 2025 -0400 +++ b/src/libpam/handle.rs Tue Jul 08 01:04:30 2025 -0400 @@ -499,7 +499,7 @@ } #[cfg(not(any(pam_impl = "LinuxPam", pam_impl = "OpenPam")))] - fn get_authtok(&mut self, prompt: Option<&str>, item_type: ItemType) -> Result<String> { + fn get_authtok(&mut self, prompt: Option<&OsStr>, item_type: ItemType) -> Result<OsString> { Err(ErrorCode::ConversationError) }