diff src/constants.rs @ 97:efe2f5f8b5b2

Implement "stateless" application-side PAM calls. This introduces `authenticate`, `account_management`, and `change_authtok`. These are the three PAM operations that are stateless (i.e., they don't start a session or modify global credentials).
author Paul Fisher <paul@pfish.zone>
date Mon, 23 Jun 2025 19:10:34 -0400
parents 5ddbcada30f2
children dfcd96a74ac4
line wrap: on
line diff
--- a/src/constants.rs	Mon Jun 23 14:26:34 2025 -0400
+++ b/src/constants.rs	Mon Jun 23 19:10:34 2025 -0400
@@ -95,7 +95,7 @@
     ///
     /// See `/usr/include/security/_pam_types.h` and
     /// See `/usr/include/security/pam_modules.h` for more details.
-    #[derive(Debug, PartialEq)]
+    #[derive(Debug, Default, PartialEq)]
     #[repr(transparent)]
     pub struct Flags: c_uint {
         /// The module should not generate any messages.