diff build.rs @ 97:efe2f5f8b5b2

Implement "stateless" application-side PAM calls. This introduces `authenticate`, `account_management`, and `change_authtok`. These are the three PAM operations that are stateless (i.e., they don't start a session or modify global credentials).
author Paul Fisher <paul@pfish.zone>
date Mon, 23 Jun 2025 19:10:34 -0400
parents 5ddbcada30f2
children 3f11b8d30f63
line wrap: on
line diff
--- a/build.rs	Mon Jun 23 14:26:34 2025 -0400
+++ b/build.rs	Mon Jun 23 19:10:34 2025 -0400
@@ -18,6 +18,9 @@
             .allowlist_function("pam_get_authtok")
             .allowlist_function("pam_end")
             .allowlist_function("pam_strerror")
+            .allowlist_function("pam_authenticate")
+            .allowlist_function("pam_chauthtok")
+            .allowlist_function("pam_acct_mgmt")
             .default_macro_constant_type(MacroTypeVariation::Unsigned);
 
         let linux_builder = common_builder