comparison 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
comparison
equal deleted inserted replaced
96:f3e260f9ddcb 97:efe2f5f8b5b2
93 bitflags! { 93 bitflags! {
94 /// The available PAM flags. 94 /// The available PAM flags.
95 /// 95 ///
96 /// See `/usr/include/security/_pam_types.h` and 96 /// See `/usr/include/security/_pam_types.h` and
97 /// See `/usr/include/security/pam_modules.h` for more details. 97 /// See `/usr/include/security/pam_modules.h` for more details.
98 #[derive(Debug, PartialEq)] 98 #[derive(Debug, Default, PartialEq)]
99 #[repr(transparent)] 99 #[repr(transparent)]
100 pub struct Flags: c_uint { 100 pub struct Flags: c_uint {
101 /// The module should not generate any messages. 101 /// The module should not generate any messages.
102 const SILENT = pam_ffi::PAM_SILENT as u32; 102 const SILENT = pam_ffi::PAM_SILENT as u32;
103 103