diff libpam-sys/src/lib.rs @ 158:d5b7b28d754e

Add `__TARGET_DEFAULT__` PamImpl and set up for docsrs build. Also fixes some formatting stuff.
author Paul Fisher <paul@pfish.zone>
date Sat, 12 Jul 2025 17:17:37 -0400
parents f71bfffb6de1
children a75a66cb4181
line wrap: on
line diff
--- a/libpam-sys/src/lib.rs	Wed Jul 09 16:59:30 2025 -0400
+++ b/libpam-sys/src/lib.rs	Sat Jul 12 17:17:37 2025 -0400
@@ -118,7 +118,6 @@
 }
 
 // These are the functions specified in X/SSO. Everybody exports them.
-#[link(name = "pam")]
 extern "C" {
     /// Account validation.
     pub fn pam_acct_mgmt(pamh: *mut pam_handle, flags: c_int) -> c_int;
@@ -199,8 +198,6 @@
     // The pam_sm_whatever functions are prototypes for the functions that
     // a PAM module should implement, not symbols provided by PAM.
 
-    // Nobody implements pam_authenticate_secondary.
-
     /// Starts a PAM transaction.  The `conv` may or may not be copied.
     pub fn pam_start(
         service: *const c_char,
@@ -288,6 +285,7 @@
         user: *const c_char,
         group: *const c_char,
     ) -> c_int;
+
     pub fn pam_modutil_user_in_group_nam_gid(
         pamh: *mut pam_handle,
         user: *const c_char,