Mercurial > crates > nonstick
comparison src/lib.rs @ 66:a674799a5cd3
Make `PamHandle` and `PamModuleHandle` traits.
This creates traits for PAM functionality and pulls the definitions
of that functionality out of the original `PamHandle` (renamed to
`LibPamHandle`) and into those traits. This supports testing PAM
module implementations using mock PAM library implementations.
Also uses a better representation of opaque pointers.
| author | Paul Fisher <paul@pfish.zone> |
|---|---|
| date | Tue, 27 May 2025 14:37:28 -0400 |
| parents | bbe84835d6db |
| children | 8f3ae0c7ab92 |
comparison
equal
deleted
inserted
replaced
| 65:8e507c7af9cf | 66:a674799a5cd3 |
|---|---|
| 33 mod pam_ffi; | 33 mod pam_ffi; |
| 34 | 34 |
| 35 #[doc(inline)] | 35 #[doc(inline)] |
| 36 pub use crate::{ | 36 pub use crate::{ |
| 37 constants::{ErrorCode, Flags, Result}, | 37 constants::{ErrorCode, Flags, Result}, |
| 38 handle::PamHandle, | 38 handle::{LibPamHandle, PamHandle, PamModuleHandle}, |
| 39 module::PamModule, | 39 module::PamModule, |
| 40 }; | 40 }; |
