Mercurial > crates > nonstick
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 131:a632a8874131 | 132:0b6a17f8c894 |
|---|---|
| 249 PAM_LOG_DEBUG, | 249 PAM_LOG_DEBUG, |
| 250 PAM_LOG_VERBOSE, | 250 PAM_LOG_VERBOSE, |
| 251 PAM_LOG_NOTICE, | 251 PAM_LOG_NOTICE, |
| 252 PAM_LOG_ERROR, | 252 PAM_LOG_ERROR, |
| 253 ); | 253 ); |
| 254 | |
| 255 c_enum!( | |
| 256 /// PAM primitives. | |
| 257 PAM_SM_AUTHENTICATE, | |
| 258 PAM_SM_SETCRED, | |
| 259 PAM_SM_ACCT_MGMT, | |
| 260 PAM_SM_OPEN_SESSION, | |
| 261 PAM_SM_CLOSE_SESSION, | |
| 262 PAM_SM_CHAUTHTOK, | |
| 263 ); | |
| 264 /// The number of PAM primitives. | |
| 265 pub const PAM_NUM_PRIMITIVES: i32 = 6; | |
| 254 } | 266 } |
| 255 | 267 |
| 256 /// Constants exclusive to Illumos. | 268 /// Constants exclusive to Illumos. |
| 257 #[cfg_pam_impl("Sun")] | 269 #[cfg_pam_impl("Sun")] |
| 258 pub use sun::*; | 270 pub use sun::*; |
