Mercurial > crates > nonstick
comparison src/lib.rs @ 146:1bc52025156b
Split PAM items into their own separate struct.
To trim down the number of methods on `PamShared`, this puts all the
Items into their own struct(s). This also makes the split between
authtok/authtok_item easier to understand.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Sun, 06 Jul 2025 19:10:26 -0400 |
parents | 56b559b7ecea |
children |
comparison
equal
deleted
inserted
replaced
145:8f964b701652 | 146:1bc52025156b |
---|---|
30 pub mod module; | 30 pub mod module; |
31 | 31 |
32 pub mod handle; | 32 pub mod handle; |
33 | 33 |
34 mod _doc; | 34 mod _doc; |
35 pub(crate) use _doc::*; | |
36 mod environ; | 35 mod environ; |
36 pub mod items; | |
37 #[cfg(feature = "link")] | 37 #[cfg(feature = "link")] |
38 mod libpam; | 38 pub mod libpam; |
39 pub mod logging; | 39 pub mod logging; |
40 | 40 |
41 #[cfg(feature = "link")] | 41 #[cfg(feature = "link")] |
42 #[doc(inline)] | 42 #[doc(inline)] |
43 pub use crate::libpam::{LibPamHandle, LibPamTransaction}; | 43 pub use crate::libpam::{LibPamHandle, LibPamTransaction}; |
44 #[doc(inline)] | 44 #[doc(inline)] |
45 pub use crate::{ | 45 pub use crate::{ |
46 constants::{ErrorCode, Flags, Result}, | 46 constants::{ErrorCode, Flags, Result}, |
47 conv::{BinaryData, Conversation, ConversationAdapter}, | 47 conv::{BinaryData, Conversation, ConversationAdapter}, |
48 environ::{EnvironMap, EnvironMapMut}, | 48 environ::{EnvironMap, EnvironMapMut}, |
49 handle::{PamHandleModule, PamShared, Transaction}, | 49 handle::{ModuleClient, PamShared, Transaction}, |
50 module::PamModule, | 50 module::PamModule, |
51 }; | 51 }; |