Mercurial > crates > nonstick
diff src/conv.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/conv.rs Tue Jun 03 21:54:58 2025 -0400 +++ b/src/conv.rs Wed Jun 04 03:53:36 2025 -0400 @@ -4,6 +4,7 @@ #![allow(dead_code)] use crate::constants::Result; +use crate::pam_ffi::LibPamConversation; use crate::pam_ffi::Message; use secure_string::SecureString; // TODO: In most cases, we should be passing around references to strings @@ -80,6 +81,12 @@ fn binary_prompt(&mut self, data: &[u8], data_type: u8) -> Result<BinaryData>; } +impl Conversation for LibPamConversation { + fn send(&mut self, _: &[Message]) -> Result<Vec<Response>> { + todo!() + } +} + impl<D: DemuxedConversation> Conversation for D { fn send(&mut self, messages: &[Message]) -> Result<Vec<Response>> { messages