Mercurial > crates > nonstick
view src/libpam/mod.rs @ 89:dd3e9c4bcde3
Simplify memory management in Questions.
When we're sending Questions to the client, we don't need them to be
C-managed, we just need the pointers going to the right place.
This replaces a bunch of Question management cruft with Vecs and Boxes.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Fri, 13 Jun 2025 05:22:48 -0400 |
parents | 5aa1a010f1e8 |
children | 5ddbcada30f2 |
line wrap: on
line source
//! The PAM library FFI and helpers for managing it. //! //! This includes the functions provided by PAM and the data structures //! used by PAM, as well as a few low-level abstractions for dealing with //! those data structures. //! //! Everything in here is hazmat. #![allow(dead_code)] mod answer; mod conversation; mod handle; mod memory; mod module; pub(crate) mod pam_ffi; mod question; #[doc(inline)] pub use handle::{LibPamHandle, OwnedLibPamHandle};