Mercurial > crates > nonstick
diff libpam-sys/src/lib.rs @ 163:a75a66cb4181
Add end-to-end tests; fix issues found by tests.
- Create tests and installer/remover shell script
- Fix Pointer/pointee problems
- Add Debug formatting
- Misc cleanup
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Mon, 14 Jul 2025 17:40:11 -0400 |
parents | d5b7b28d754e |
children | 9e4ce1631bd3 |
line wrap: on
line diff
--- a/libpam-sys/src/lib.rs Mon Jul 14 15:07:16 2025 -0400 +++ b/libpam-sys/src/lib.rs Mon Jul 14 17:40:11 2025 -0400 @@ -44,6 +44,7 @@ /// Used by PAM to communicate between the module and the application. #[repr(C)] +#[derive(Debug)] pub struct pam_conv { pub conv: unsafe extern "C" fn( num_msg: c_int, @@ -56,6 +57,7 @@ /// A message sent into a PAM conversation. #[repr(C)] +#[derive(Debug)] pub struct pam_message { pub msg_style: c_int, pub msg: *const c_char, @@ -63,6 +65,7 @@ /// A response returned from a PAM conversation. #[repr(C)] +#[derive(Debug)] pub struct pam_response { pub resp: *mut c_char, /// Completely unused.