Mercurial > crates > nonstick
diff src/libpam/handle.rs @ 78:002adfb98c5c
Rename files, reorder structs, remove annoying BorrowedBinaryData type.
This is basically a cleanup change. Also it adds tests.
- Renames the files with Questions and Answers to question and answer.
- Reorders the structs in those files to put the important ones first.
- Removes the BorrowedBinaryData type. It was a bad idea all along.
Instead, we just use (&[u8], u8).
- Adds some tests because I just can't help myself.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Sun, 08 Jun 2025 03:48:40 -0400 |
parents | 351bdc13005e |
children | 5aa1a010f1e8 |
line wrap: on
line diff
--- a/src/libpam/handle.rs Sun Jun 08 01:03:46 2025 -0400 +++ b/src/libpam/handle.rs Sun Jun 08 03:48:40 2025 -0400 @@ -54,7 +54,7 @@ } /// Gets the `PAM_CONV` item from the handle. - fn conversation_item(&mut self) -> Result<&mut LibPamConversation> { + fn conversation_item(&mut self) -> Result<&mut LibPamConversation<'_>> { let output: *mut LibPamConversation = ptr::null_mut(); let result = unsafe { super::pam_get_item(