Mercurial > crates > nonstick
diff testharness/src/lib.rs @ 146:1bc52025156b
Split PAM items into their own separate struct.
To trim down the number of methods on `PamShared`, this puts all the
Items into their own struct(s). This also makes the split between
authtok/authtok_item easier to understand.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Sun, 06 Jul 2025 19:10:26 -0400 |
parents | c77846f3a979 |
children |
line wrap: on
line diff
--- a/testharness/src/lib.rs Sun Jul 06 19:04:57 2025 -0400 +++ b/testharness/src/lib.rs Sun Jul 06 19:10:26 2025 -0400 @@ -1,12 +1,12 @@ //! The nonstick library extern crate nonstick; -use nonstick::{pam_hooks, Flags, PamHandleModule, PamModule}; +use nonstick::{pam_hooks, Flags, ModuleClient, PamModule}; use std::ffi::CStr; struct TestHarness; -impl<M: PamHandleModule> PamModule<M> for TestHarness { +impl<M: ModuleClient> PamModule<M> for TestHarness { fn authenticate(_handle: &mut M, _args: Vec<&CStr>, _flags: Flags) -> nonstick::Result<()> { Ok(()) }