Mercurial > crates > nonstick
diff libpam-sys/src/constants.rs @ 132:0b6a17f8c894
Get constant test working again with OpenPAM.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Wed, 02 Jul 2025 02:34:29 -0400 |
parents | a632a8874131 |
children | 32b2a545ca3e |
line wrap: on
line diff
--- a/libpam-sys/src/constants.rs Wed Jul 02 02:24:21 2025 -0400 +++ b/libpam-sys/src/constants.rs Wed Jul 02 02:34:29 2025 -0400 @@ -251,6 +251,18 @@ PAM_LOG_NOTICE, PAM_LOG_ERROR, ); + + c_enum!( + /// PAM primitives. + PAM_SM_AUTHENTICATE, + PAM_SM_SETCRED, + PAM_SM_ACCT_MGMT, + PAM_SM_OPEN_SESSION, + PAM_SM_CLOSE_SESSION, + PAM_SM_CHAUTHTOK, + ); + /// The number of PAM primitives. + pub const PAM_NUM_PRIMITIVES: i32 = 6; } /// Constants exclusive to Illumos.