diff 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
line wrap: on
line diff
--- a/src/module.rs	Sun Jun 08 01:03:46 2025 -0400
+++ b/src/module.rs	Sun Jun 08 03:48:40 2025 -0400
@@ -28,7 +28,8 @@
     ///
     /// This is probably the first thing you want to implement.
     /// In most cases, you will want to get the user and password,
-    /// using [`PamHandle::get_user`] and [`PamModuleOnly::get_authtok`],
+    /// using [`PamShared::get_user`](crate::PamShared::get_user)
+    /// and [`PamModuleOnly::get_authtok`](crate::handle::PamModuleOnly::get_authtok),
     /// and verify them against something.
     ///
     /// See [the Module Writer's Guide entry for `pam_sm_authenticate`][mwg]