Mercurial > crates > nonstick
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 77:351bdc13005e | 78:002adfb98c5c |
|---|---|
| 3 //! This includes the functions provided by PAM and the data structures | 3 //! This includes the functions provided by PAM and the data structures |
| 4 //! used by PAM, as well as a few low-level abstractions for dealing with | 4 //! used by PAM, as well as a few low-level abstractions for dealing with |
| 5 //! those data structures. | 5 //! those data structures. |
| 6 //! | 6 //! |
| 7 //! Everything in here is hazmat. | 7 //! Everything in here is hazmat. |
| 8 //! | |
| 9 | 8 |
| 10 #![allow(dead_code)] | 9 #![allow(dead_code)] |
| 11 | 10 |
| 11 mod answer; | |
| 12 mod conversation; | 12 mod conversation; |
| 13 mod handle; | 13 mod handle; |
| 14 mod memory; | 14 mod memory; |
| 15 mod message; | |
| 16 mod module; | 15 mod module; |
| 17 mod response; | 16 mod question; |
| 18 | 17 |
| 19 pub use handle::{LibPamHandle, OwnedLibPamHandle}; | 18 pub use handle::{LibPamHandle, OwnedLibPamHandle}; |
| 20 use std::ffi::{c_char, c_int, c_void}; | 19 use std::ffi::{c_char, c_int, c_void}; |
| 21 | 20 |
| 22 #[link(name = "pam")] | 21 #[link(name = "pam")] |
