Mercurial > crates > nonstick
comparison src/module.rs @ 78:002adfb98c5c
Rename files, reorder structs, remove annoying BorrowedBinaryData type.
This is basically a cleanup change. Also it adds tests.
- Renames the files with Questions and Answers to question and answer.
- Reorders the structs in those files to put the important ones first.
- Removes the BorrowedBinaryData type. It was a bad idea all along.
Instead, we just use (&[u8], u8).
- Adds some tests because I just can't help myself.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Sun, 08 Jun 2025 03:48:40 -0400 |
parents | c7c596e6388f |
children | 5aa1a010f1e8 |
comparison
equal
deleted
inserted
replaced
77:351bdc13005e | 78:002adfb98c5c |
---|---|
26 | 26 |
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 [`PamHandle::get_user`] and [`PamModuleOnly::get_authtok`], | 31 /// using [`PamShared::get_user`](crate::PamShared::get_user) |
32 /// and [`PamModuleOnly::get_authtok`](crate::handle::PamModuleOnly::get_authtok), | |
32 /// and verify them against something. | 33 /// and verify them against something. |
33 /// | 34 /// |
34 /// 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] |
35 /// for more information. | 36 /// for more information. |
36 /// | 37 /// |