Mercurial > crates > nonstick
diff src/pam_ffi/message.rs @ 72:47eb242a4f88
Fill out the PamHandle trait.
This updates the PamHandle trait to have methods for each Item,
and implements them on the LibPamHandle.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Wed, 04 Jun 2025 03:53:36 -0400 |
parents | 58f9d2a4df38 |
children | ac6881304c78 |
line wrap: on
line diff
--- a/src/pam_ffi/message.rs Tue Jun 03 21:54:58 2025 -0400 +++ b/src/pam_ffi/message.rs Wed Jun 04 03:53:36 2025 -0400 @@ -18,31 +18,31 @@ pub enum Message<'a> { /// Requests information from the user; will be masked when typing. /// - /// Response: [`Response::MaskedText`] + /// Response: [`MaskedText`](crate::conv::Response::MaskedText) MaskedPrompt(&'a str), /// Requests information from the user; will not be masked. /// - /// Response: [`Response::Text`] + /// Response: [`Text`](crate::conv::Response::Text) Prompt(&'a str), /// "Yes/No/Maybe conditionals" (a Linux-PAM extension). /// - /// Response: [`Response::Text`] + /// Response: [`Text`](crate::conv::Response::Text) /// (Linux-PAM documentation doesn't define its contents.) RadioPrompt(&'a str), /// Raises an error message to the user. /// - /// Response: [`Response::NoResponse`] + /// Response: [`NoResponse`](crate::conv::Response::NoResponse) Error(&'a str), /// Sends an informational message to the user. /// - /// Response: [`Response::NoResponse`] + /// Response: [`NoResponse`](crate::conv::Response::NoResponse) Info(&'a str), /// Requests binary data from the client (a Linux-PAM extension). /// /// This is used for non-human or non-keyboard prompts (security key?). /// NOT part of the X/Open PAM specification. /// - /// Response: [`Response::Binary`] + /// Response: [`Binary`](crate::conv::Response::Binary) BinaryPrompt { /// Some binary data. data: &'a [u8],