about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/library_list.h1
-rw-r--r--src/wrapped/generated/functions_list.txt1
-rw-r--r--src/wrapped/generated/wrappedpamdefs.h8
-rw-r--r--src/wrapped/generated/wrappedpamtypes.h17
-rw-r--r--src/wrapped/generated/wrappedpamundefs.h8
-rw-r--r--src/wrapped/wrappedpam.c18
-rw-r--r--src/wrapped/wrappedpam_private.h48
7 files changed, 101 insertions, 0 deletions
diff --git a/src/library_list.h b/src/library_list.h
index c43bdd75..0cddb314 100644
--- a/src/library_list.h
+++ b/src/library_list.h
@@ -246,6 +246,7 @@ GO("libicui18n.so.72", icui18n72)
 GO("libicuuc.so.74", icuuc74)
 GO("libicui18n.so.74", icui18n74)
 GO("libidn2.so.0", idn2)
+GO("libpam.so.0", pam)
 
 #ifdef ANDROID
 GO("libc.so", libc)
diff --git a/src/wrapped/generated/functions_list.txt b/src/wrapped/generated/functions_list.txt
index 5973241f..d3a398e8 100644
--- a/src/wrapped/generated/functions_list.txt
+++ b/src/wrapped/generated/functions_list.txt
@@ -4978,6 +4978,7 @@ wrappedopencl:
   - clBuildProgram
 - pFpupppp:
   - clCreateContext
+wrappedpam:
 wrappedpango:
 - vFpp:
   - pango_attribute_init
diff --git a/src/wrapped/generated/wrappedpamdefs.h b/src/wrapped/generated/wrappedpamdefs.h
new file mode 100644
index 00000000..6a6bb0b4
--- /dev/null
+++ b/src/wrapped/generated/wrappedpamdefs.h
@@ -0,0 +1,8 @@
+/*******************************************************************
+ * File automatically generated by rebuild_wrappers.py (v2.4.0.20) *
+ *******************************************************************/
+#ifndef __wrappedpamDEFS_H_
+#define __wrappedpamDEFS_H_
+
+
+#endif // __wrappedpamDEFS_H_
diff --git a/src/wrapped/generated/wrappedpamtypes.h b/src/wrapped/generated/wrappedpamtypes.h
new file mode 100644
index 00000000..5d71fe5a
--- /dev/null
+++ b/src/wrapped/generated/wrappedpamtypes.h
@@ -0,0 +1,17 @@
+/*******************************************************************
+ * File automatically generated by rebuild_wrappers.py (v2.4.0.20) *
+ *******************************************************************/
+#ifndef __wrappedpamTYPES_H_
+#define __wrappedpamTYPES_H_
+
+#ifndef LIBNAME
+#error You should only #include this file inside a wrapped*.c file
+#endif
+#ifndef ADDED_FUNCTIONS
+#define ADDED_FUNCTIONS() 
+#endif
+
+
+#define SUPER() ADDED_FUNCTIONS()
+
+#endif // __wrappedpamTYPES_H_
diff --git a/src/wrapped/generated/wrappedpamundefs.h b/src/wrapped/generated/wrappedpamundefs.h
new file mode 100644
index 00000000..e76c08f2
--- /dev/null
+++ b/src/wrapped/generated/wrappedpamundefs.h
@@ -0,0 +1,8 @@
+/*******************************************************************
+ * File automatically generated by rebuild_wrappers.py (v2.4.0.20) *
+ *******************************************************************/
+#ifndef __wrappedpamUNDEFS_H_
+#define __wrappedpamUNDEFS_H_
+
+
+#endif // __wrappedpamUNDEFS_H_
diff --git a/src/wrapped/wrappedpam.c b/src/wrapped/wrappedpam.c
new file mode 100644
index 00000000..9c1fa3de
--- /dev/null
+++ b/src/wrapped/wrappedpam.c
@@ -0,0 +1,18 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#define _GNU_SOURCE         /* See feature_test_macros(7) */
+#include <dlfcn.h>
+
+#include "wrappedlibs.h"
+
+#include "debug.h"
+#include "wrapper.h"
+#include "bridge.h"
+#include "librarian/library_private.h"
+#include "x64emu.h"
+
+const char* pamName = "libpam.so.0";
+#define LIBNAME pam
+
+#include "wrappedlib_init.h"
diff --git a/src/wrapped/wrappedpam_private.h b/src/wrapped/wrappedpam_private.h
new file mode 100644
index 00000000..ca696f59
--- /dev/null
+++ b/src/wrapped/wrappedpam_private.h
@@ -0,0 +1,48 @@
+#if !(defined(GO) && defined(GOM) && defined(GO2) && defined(DATA))
+#error meh!
+#endif
+
+//GO(pam_acct_mgmt, 
+//GO(pam_authenticate, 
+//GO(pam_chauthtok, 
+//GO(pam_close_session, 
+//GO(pam_end, 
+//GO(pam_fail_delay, 
+//GO(pam_get_authtok, 
+//GO(pam_get_authtok_noverify, 
+//GO(pam_get_authtok_verify, 
+//GO(pam_get_data, 
+//GO(pam_getenv, 
+//GO(pam_getenvlist, 
+//GO(pam_get_item, 
+//GO(pam_get_user, 
+//GO(pam_modutil_audit_write, 
+//GO(pam_modutil_check_user_in_passwd, 
+//GO(pam_modutil_drop_priv, 
+//GO(pam_modutil_getgrgid, 
+//GO(pam_modutil_getgrnam, 
+//GO(pam_modutil_getlogin, 
+//GO(pam_modutil_getpwnam, 
+//GO(pam_modutil_getpwuid, 
+//GO(pam_modutil_getspnam, 
+//GO(pam_modutil_read, 
+//GO(pam_modutil_regain_priv, 
+//GO(pam_modutil_sanitize_helper_fds, 
+//GO(pam_modutil_search_key, 
+//GO(pam_modutil_user_in_group_nam_gid, 
+//GO(pam_modutil_user_in_group_nam_nam, 
+//GO(pam_modutil_user_in_group_uid_gid, 
+//GO(pam_modutil_user_in_group_uid_nam, 
+//GO(pam_modutil_write, 
+//GO(pam_open_session, 
+//GO(pam_prompt, 
+//GO(pam_putenv, 
+//GO(pam_setcred, 
+//GO(pam_set_data, 
+//GO(pam_set_item, 
+//GO(pam_start, 
+//GO(pam_start_confdir, 
+//GO(pam_strerror, 
+//GO(pam_syslog, 
+//GO(pam_vprompt, 
+//GO(pam_vsyslog,