Mercurial > crates > nonstick
view testharness/src/lib.rs @ 107:49c6633f6fd2
Add Cargo.lock file.
This ensures that we get reproducible builds, particularly because
we want to support Rust v1.75.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Thu, 26 Jun 2025 22:42:32 -0400 |
parents | a2676475e86b |
children |
line wrap: on
line source
//! The nonstick library extern crate nonstick; use nonstick::{pam_hooks, Flags, PamHandleModule, PamModule}; use std::ffi::CStr; struct TestHarness; impl<M: PamHandleModule> PamModule<M> for TestHarness { fn authenticate(handle: &mut M, args: Vec<&CStr>, flags: Flags) -> nonstick::Result<()> { Ok(()) } fn account_management(handle: &mut M, args: Vec<&CStr>, flags: Flags) -> nonstick::Result<()> { Ok(()) } } pam_hooks!(TestHarness);