Mercurial > crates > nonstick
diff src/libpam/mod.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 | c30811b4afae |
children | 5aa1a010f1e8 |
line wrap: on
line diff
--- a/src/libpam/mod.rs Sun Jun 08 01:03:46 2025 -0400 +++ b/src/libpam/mod.rs Sun Jun 08 03:48:40 2025 -0400 @@ -5,16 +5,15 @@ //! those data structures. //! //! Everything in here is hazmat. -//! #![allow(dead_code)] +mod answer; mod conversation; mod handle; mod memory; -mod message; mod module; -mod response; +mod question; pub use handle::{LibPamHandle, OwnedLibPamHandle}; use std::ffi::{c_char, c_int, c_void};