diff testharness/src/lib.rs @ 171:e27c5c667a5a

Create full new types for return code and flags, separate end to end. This plumbs the ReturnCode and RawFlags types through the places where we call into or are called from PAM. Also adds Sun documentation to the project.
author Paul Fisher <paul@pfish.zone>
date Fri, 25 Jul 2025 20:52:14 -0400
parents 77470e45e397
children 6727cbe56f4a
line wrap: on
line diff
--- a/testharness/src/lib.rs	Wed Jul 16 18:45:20 2025 -0400
+++ b/testharness/src/lib.rs	Fri Jul 25 20:52:14 2025 -0400
@@ -87,7 +87,7 @@
         _flags: AuthtokFlags,
     ) -> nonstick::Result<()> {
         match action {
-            AuthtokAction::PreliminaryCheck => {
+            AuthtokAction::Validate => {
                 if handle.old_authtok(None)?.as_bytes() != b"old token!" {
                     return Err(ErrorCode::AuthenticationError);
                 }