diff src/module.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
line wrap: on
line diff
--- a/src/module.rs	Fri Jun 13 05:22:48 2025 -0400
+++ b/src/module.rs	Sat Jun 14 09:30:16 2025 -0400
@@ -28,8 +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 [`PamShared::get_user`](crate::PamShared::get_user)
-    /// and [`PamHandleModule::get_authtok`],
+    /// using [`PamShared::username`](crate::PamShared::username)
+    /// and [`PamHandleModule::authtok`],
     /// and verify them against something.
     ///
     /// See [the Module Writer's Guide entry for `pam_sm_authenticate`][mwg]