Mercurial > crates > nonstick
view src/libpam/mod.rs @ 98:b87100c5eed4
Start on environment variables, and make pointers nicer.
This starts work on the PAM environment handling, and in so doing,
introduces the CHeapBox and CHeapString structs. These are analogous
to Box and CString, but they're located on the C heap rather than
being Rust-managed memory.
This is because environment variables deal with even more pointers
and it turns out we can lose a lot of manual freeing using homemade
smart pointers.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Tue, 24 Jun 2025 04:25:25 -0400 |
parents | 5ddbcada30f2 |
children |
line wrap: on
line source
//! The implementation of the PAM interface that wraps `libpam`. //! //! While you're going to want to write PAM modules and applications against //! the interfaces in [the `handle` module](crate::handle) for testability, //! this is (probably) what will be used behind the scenes. #![allow(dead_code)] mod answer; mod conversation; mod environ; mod handle; mod memory; mod module; pub(crate) mod pam_ffi; mod question; #[doc(inline)] pub use handle::{LibPamHandle, OwnedLibPamHandle};