Mercurial > crates > nonstick
comparison src/lib.rs @ 72:47eb242a4f88
Fill out the PamHandle trait.
This updates the PamHandle trait to have methods for each Item,
and implements them on the LibPamHandle.
| author | Paul Fisher <paul@pfish.zone> |
|---|---|
| date | Wed, 04 Jun 2025 03:53:36 -0400 |
| parents | 58f9d2a4df38 |
| children | ac6881304c78 |
comparison
equal
deleted
inserted
replaced
| 71:58f9d2a4df38 | 72:47eb242a4f88 |
|---|---|
| 20 //! For general information on writing PAM modules, see | 20 //! For general information on writing PAM modules, see |
| 21 //! [The Linux-PAM Module Writers' Guide][module-guide] | 21 //! [The Linux-PAM Module Writers' Guide][module-guide] |
| 22 //! | 22 //! |
| 23 //! [module-guide]: https://www.chiark.greenend.org.uk/doc/libpam-doc/html/Linux-PAM_MWG.html | 23 //! [module-guide]: https://www.chiark.greenend.org.uk/doc/libpam-doc/html/Linux-PAM_MWG.html |
| 24 | 24 |
| 25 // Temporary until everything is fully wired up. | |
| 26 #![allow(dead_code)] | |
| 27 | |
| 25 pub mod constants; | 28 pub mod constants; |
| 26 pub mod conv; | 29 mod conv; |
| 27 pub mod items; | 30 mod items; |
| 28 pub mod module; | 31 pub mod module; |
| 29 | 32 |
| 30 mod handle; | 33 mod handle; |
| 31 mod pam_ffi; | 34 mod pam_ffi; |
| 32 | 35 |
| 33 #[doc(inline)] | 36 #[doc(inline)] |
| 34 pub use crate::{ | 37 pub use crate::{ |
| 35 constants::{ErrorCode, Flags, Result}, | 38 constants::{ErrorCode, Flags, Result}, |
| 36 handle::{LibPamHandle, PamApplicationHandle, PamHandle, PamModuleHandle}, | 39 conv::{Conversation, DemuxedConversation, Response}, |
| 40 handle::{PamApplicationHandle, PamHandle, PamModuleHandle}, | |
| 37 module::PamModule, | 41 module::PamModule, |
| 42 pam_ffi::{LibPamHandle, Message}, | |
| 38 }; | 43 }; |
