comparison testharness/src/lib.rs @ 169:77470e45e397

Set up stuff to work the way Sun expects it to. This sets up PAM to use pam_authtok_get.so on Sun machines.
author Paul Fisher <paul@pfish.zone>
date Tue, 15 Jul 2025 01:32:21 -0400
parents 6642e89d29a2
children e27c5c667a5a
comparison
equal deleted inserted replaced
168:6642e89d29a2 169:77470e45e397
7 use nonstick::conv::{ErrorMsg, InfoMsg, MaskedQAndA, QAndA}; 7 use nonstick::conv::{ErrorMsg, InfoMsg, MaskedQAndA, QAndA};
8 use nonstick::{ 8 use nonstick::{
9 error, info, pam_hooks, AuthnFlags, AuthtokAction, AuthtokFlags, ErrorCode, ModuleClient, 9 error, info, pam_hooks, AuthnFlags, AuthtokAction, AuthtokFlags, ErrorCode, ModuleClient,
10 PamModule, 10 PamModule,
11 }; 11 };
12 use std::ffi::{CStr, OsString}; 12 use std::ffi::CStr;
13 use std::os::unix::ffi::OsStrExt; 13 use std::os::unix::ffi::OsStrExt;
14 14
15 struct TestHarness; 15 struct TestHarness;
16 16
17 impl<M: ModuleClient> PamModule<M> for TestHarness { 17 impl<M: ModuleClient> PamModule<M> for TestHarness {