comparison src/libpam/handle.rs @ 176:0730f5f2ee2a

Turn `libpam-sys-consts` back into `libpam-sys-impls`. This moves the constants into `libpam-sys` and makes `libpam-sys-impls` responsible solely for detecting the current PAM implementation.
author Paul Fisher <paul@pfish.zone>
date Wed, 30 Jul 2025 17:53:31 -0400
parents e30775c80b49
children a1bb1d013567
comparison
equal deleted inserted replaced
175:e30775c80b49 176:0730f5f2ee2a
136 /// to [`pam_end` on Linux-PAM][man7], which signals that data cleanup 136 /// to [`pam_end` on Linux-PAM][man7], which signals that data cleanup
137 /// should "not treat the call too seriously" \[sic]. 137 /// should "not treat the call too seriously" \[sic].
138 /// 138 ///
139 /// On other platforms, this is no different than letting the transaction 139 /// On other platforms, this is no different than letting the transaction
140 /// end on its own. 140 /// end on its own.
141 #[doc = ""]
141 #[doc = man7!(3 pam_end)] 142 #[doc = man7!(3 pam_end)]
142 pub fn end_silent(self) { 143 pub fn end_silent(self) {
143 #[cfg(pam_impl = "LinuxPam")] 144 #[cfg(pam_impl = "LinuxPam")]
144 { 145 {
145 let mut me = std::mem::ManuallyDrop::new(self); 146 let mut me = std::mem::ManuallyDrop::new(self);