Mercurial > crates > nonstick
diff src/logging.rs @ 171:e27c5c667a5a
Create full new types for return code and flags, separate end to end.
This plumbs the ReturnCode and RawFlags types through the places where
we call into or are called from PAM.
Also adds Sun documentation to the project.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Fri, 25 Jul 2025 20:52:14 -0400 |
parents | 634cd5f2ac8b |
children | 9e4ce1631bd3 |
line wrap: on
line diff
--- a/src/logging.rs Wed Jul 16 18:45:20 2025 -0400 +++ b/src/logging.rs Fri Jul 25 20:52:14 2025 -0400 @@ -1,10 +1,8 @@ //! PAM logging variables and macros. //! //! PAM implementations usually include the ability to log to syslog in a way -//! that is associated with the log entry itself. This module defines the enums -//! and macros for logging. -//! -//! For more details, see [`PamShared::log`](crate::PamShared::log). +//! that is associated with the log entry itself. This module defines +//! the interface we use for logging. //! //! We can't use [the `log` crate](https://docs.rs/log) because that requires //! that any `Log` implementors be `Sync` and `Send`, and a PAM handle