comparison libpam-sys/libpam-sys-consts/src/lib.rs @ 155:ab8020566cd9

Only use real PAM constants for logging within `nonstick/libpam`.
author Paul Fisher <paul@pfish.zone>
date Tue, 08 Jul 2025 00:49:38 -0400
parents 4b3a5095f68c
children
comparison
equal deleted inserted replaced
154:f71bfffb6de1 155:ab8020566cd9
19 /// PAM implementations with `rustc-check-cfg` to get cfg-checking. 19 /// PAM implementations with `rustc-check-cfg` to get cfg-checking.
20 /// 20 ///
21 /// The names that appear in the `cfg` variables are the same as the values 21 /// The names that appear in the `cfg` variables are the same as the values
22 /// in the [`PamImpl`] enum. 22 /// in the [`PamImpl`] enum.
23 /// 23 ///
24 /// ``` 24 /// ```ignore
25 /// #[cfg(pam_impl = "OpenPam")] 25 /// #[cfg(pam_impl = "OpenPam")]
26 /// fn openpam_specific_func(handle: *const libpam_sys::pam_handle) { 26 /// fn openpam_specific_func(handle: *const libpam_sys::pam_handle) {
27 /// let environ = libpam_sys::pam_getenvlist(handle); 27 /// let environ = libpam_sys::pam_getenvlist(handle);
28 /// // ... 28 /// // ...
29 /// libpam_sys::openpam_free_envlist() 29 /// libpam_sys::openpam_free_envlist()