Mercurial > crates > nonstick
diff src/module.rs @ 80:5aa1a010f1e8
Start using PAM headers; improve owned/borrowed distinction.
- Uses bindgen to generate bindings (only if needed).
- Gets the story together on owned vs. borrowed handles.
- Reduces number of mutable borrows in handle operation
(since `PamHandle` is neither `Send` nor `Sync`,
we never have to worry about thread safety.
- Improves a bunch of macros so we don't have our own
special syntax for docs.
- Implement question indirection for standard XSSO PAM implementations.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Tue, 10 Jun 2025 01:09:30 -0400 |
parents | 002adfb98c5c |
children |
line wrap: on
line diff
--- a/src/module.rs Sun Jun 08 04:21:58 2025 -0400 +++ b/src/module.rs Tue Jun 10 01:09:30 2025 -0400 @@ -29,7 +29,7 @@ /// This is probably the first thing you want to implement. /// In most cases, you will want to get the user and password, /// using [`PamShared::get_user`](crate::PamShared::get_user) - /// and [`PamModuleOnly::get_authtok`](crate::handle::PamModuleOnly::get_authtok), + /// and [`PamHandleModule::get_authtok`], /// and verify them against something. /// /// See [the Module Writer's Guide entry for `pam_sm_authenticate`][mwg]