view src/libpam/mod.rs @ 90:f6186e41399b

Miscellaneous fixes and cleanup: - Rename `get_user` to `username` and `get_authtok` to `authtok`. - Use pam_strerror for error messages. - Add library linkage to build.rs (it was missing???).
author Paul Fisher <paul@pfish.zone>
date Sat, 14 Jun 2025 09:30:16 -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};