Mercurial > crates > nonstick
comparison 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 |
comparison
equal
deleted
inserted
replaced
79:2128123b9406 | 80:5aa1a010f1e8 |
---|---|
27 /// Authenticate the user. | 27 /// Authenticate the user. |
28 /// | 28 /// |
29 /// This is probably the first thing you want to implement. | 29 /// This is probably the first thing you want to implement. |
30 /// In most cases, you will want to get the user and password, | 30 /// In most cases, you will want to get the user and password, |
31 /// using [`PamShared::get_user`](crate::PamShared::get_user) | 31 /// using [`PamShared::get_user`](crate::PamShared::get_user) |
32 /// and [`PamModuleOnly::get_authtok`](crate::handle::PamModuleOnly::get_authtok), | 32 /// and [`PamHandleModule::get_authtok`], |
33 /// and verify them against something. | 33 /// and verify them against something. |
34 /// | 34 /// |
35 /// See [the Module Writer's Guide entry for `pam_sm_authenticate`][mwg] | 35 /// See [the Module Writer's Guide entry for `pam_sm_authenticate`][mwg] |
36 /// for more information. | 36 /// for more information. |
37 /// | 37 /// |