Mercurial > crates > nonstick
diff src/items.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 | d83623951070 |
children |
line wrap: on
line diff
--- a/src/items.rs Thu May 22 02:08:10 2025 -0400 +++ b/src/items.rs Tue May 27 14:37:28 2025 -0400 @@ -54,7 +54,7 @@ } } -/// A type that can be requested by [`PamHandle::get_item`](crate::PamHandle::get_item). +/// A type that can be requested by [`PamHandle::get_item`](crate::LibPamHandle::get_item). pub trait Item { /// The `repr(C)` type that is returned (by pointer) by the underlying `pam_get_item` function. /// This memory is owned by the PAM session.