aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@strace.io>2024-08-21 08:00:00 +0000
committerDmitry V. Levin <ldv@strace.io>2024-08-21 08:00:00 +0000
commit4d1d4f699551f395be065e60513eaf85f01b84e6 (patch)
tree8b0b0139fefd441815f5a5bbdebb29ef2b736873 /modules
parent1ef2c9a2266f71639cf3c81bd5ee2031051a7cb4 (diff)
downloadpam-4d1d4f699551f395be065e60513eaf85f01b84e6.tar.gz
pam-4d1d4f699551f395be065e60513eaf85f01b84e6.tar.bz2
pam-4d1d4f699551f395be065e60513eaf85f01b84e6.zip
Include pam_i18n.h where i18n definitions are required
Do not include <libintl.h> and other i18n stuff via config.h which is included into every compilation unit, include "pam_i18n.h" explicitly where necessary. * configure.ac (AH_BOTTOM): Remove. * libpam/pam_get_authtok.c: Include "pam_i18n.h". * libpam/pam_item.c: Likewise. * libpam/pam_strerror.c: Likewise. * libpam_misc/misc_conv.c: Likewise. * modules/pam_exec/pam_exec.c: Likewise. * modules/pam_faillock/main.c: Likewise. * modules/pam_faillock/pam_faillock.c: Likewise. * modules/pam_lastlog/pam_lastlog.c: Likewise. * modules/pam_limits/pam_limits.c: Likewise. * modules/pam_mail/pam_mail.c: Likewise. * modules/pam_mkhomedir/pam_mkhomedir.c: Likewise. * modules/pam_pwhistory/pam_pwhistory.c: Likewise. * modules/pam_selinux/pam_selinux.c: Likewise. * modules/pam_selinux/pam_selinux_check.c: Likewise. * modules/pam_timestamp/pam_timestamp.c: Likewise. * modules/pam_unix/pam_unix_acct.c: Likewise. * modules/pam_unix/pam_unix_passwd.c: Likewise. * modules/pam_userdb/pam_userdb.c: Likewise.
Diffstat (limited to 'modules')
-rw-r--r--modules/pam_exec/pam_exec.c1
-rw-r--r--modules/pam_faillock/main.c1
-rw-r--r--modules/pam_faillock/pam_faillock.c1
-rw-r--r--modules/pam_lastlog/pam_lastlog.c1
-rw-r--r--modules/pam_limits/pam_limits.c1
-rw-r--r--modules/pam_mail/pam_mail.c1
-rw-r--r--modules/pam_mkhomedir/pam_mkhomedir.c1
-rw-r--r--modules/pam_pwhistory/pam_pwhistory.c1
-rw-r--r--modules/pam_selinux/pam_selinux.c1
-rw-r--r--modules/pam_selinux/pam_selinux_check.c2
-rw-r--r--modules/pam_timestamp/pam_timestamp.c1
-rw-r--r--modules/pam_unix/pam_unix_acct.c1
-rw-r--r--modules/pam_unix/pam_unix_passwd.c1
-rw-r--r--modules/pam_userdb/pam_userdb.c1
14 files changed, 15 insertions, 0 deletions
diff --git a/modules/pam_exec/pam_exec.c b/modules/pam_exec/pam_exec.c
index 5468e179..c3ecb248 100644
--- a/modules/pam_exec/pam_exec.c
+++ b/modules/pam_exec/pam_exec.c
@@ -55,6 +55,7 @@
#include <security/pam_ext.h>
#include <security/_pam_macros.h>
#include "pam_inline.h"
+#include "pam_i18n.h"
#define ENV_ITEM(n) { (n), #n }
static struct {
diff --git a/modules/pam_faillock/main.c b/modules/pam_faillock/main.c
index 57989ba6..c6dd19cb 100644
--- a/modules/pam_faillock/main.c
+++ b/modules/pam_faillock/main.c
@@ -52,6 +52,7 @@
#endif
#include "pam_inline.h"
+#include "pam_i18n.h"
#include "faillock.h"
#include "faillock_config.h"
diff --git a/modules/pam_faillock/pam_faillock.c b/modules/pam_faillock/pam_faillock.c
index 038a95ea..93850380 100644
--- a/modules/pam_faillock/pam_faillock.c
+++ b/modules/pam_faillock/pam_faillock.c
@@ -54,6 +54,7 @@
#include <security/pam_ext.h>
#include "pam_inline.h"
+#include "pam_i18n.h"
#include "faillock.h"
#include "faillock_config.h"
diff --git a/modules/pam_lastlog/pam_lastlog.c b/modules/pam_lastlog/pam_lastlog.c
index 2daedb7c..ded76763 100644
--- a/modules/pam_lastlog/pam_lastlog.c
+++ b/modules/pam_lastlog/pam_lastlog.c
@@ -66,6 +66,7 @@ struct lastlog {
#include <security/pam_modutil.h>
#include <security/pam_ext.h>
#include "pam_inline.h"
+#include "pam_i18n.h"
/* argument parsing */
diff --git a/modules/pam_limits/pam_limits.c b/modules/pam_limits/pam_limits.c
index 51276265..1197e25c 100644
--- a/modules/pam_limits/pam_limits.c
+++ b/modules/pam_limits/pam_limits.c
@@ -114,6 +114,7 @@ struct pam_limit_s {
#include <security/pam_modutil.h>
#include <security/pam_ext.h>
#include "pam_inline.h"
+#include "pam_i18n.h"
/* argument parsing */
diff --git a/modules/pam_mail/pam_mail.c b/modules/pam_mail/pam_mail.c
index 2b77e560..3202ce0c 100644
--- a/modules/pam_mail/pam_mail.c
+++ b/modules/pam_mail/pam_mail.c
@@ -35,6 +35,7 @@
#include <security/pam_modutil.h>
#include <security/pam_ext.h>
#include "pam_inline.h"
+#include "pam_i18n.h"
/* argument parsing */
diff --git a/modules/pam_mkhomedir/pam_mkhomedir.c b/modules/pam_mkhomedir/pam_mkhomedir.c
index 72fa7840..71d02b6d 100644
--- a/modules/pam_mkhomedir/pam_mkhomedir.c
+++ b/modules/pam_mkhomedir/pam_mkhomedir.c
@@ -51,6 +51,7 @@
#include "pam_cc_compat.h"
#include "pam_inline.h"
+#include "pam_i18n.h"
/* argument parsing */
#define MKHOMEDIR_DEBUG 020 /* be verbose about things */
diff --git a/modules/pam_pwhistory/pam_pwhistory.c b/modules/pam_pwhistory/pam_pwhistory.c
index 7ff74bdf..e43bd9b2 100644
--- a/modules/pam_pwhistory/pam_pwhistory.c
+++ b/modules/pam_pwhistory/pam_pwhistory.c
@@ -63,6 +63,7 @@
#include "opasswd.h"
#include "pam_inline.h"
+#include "pam_i18n.h"
#include "pwhistory_config.h"
diff --git a/modules/pam_selinux/pam_selinux.c b/modules/pam_selinux/pam_selinux.c
index b0123c8f..a9276123 100644
--- a/modules/pam_selinux/pam_selinux.c
+++ b/modules/pam_selinux/pam_selinux.c
@@ -57,6 +57,7 @@
#include <security/pam_modutil.h>
#include <security/pam_ext.h>
#include "pam_inline.h"
+#include "pam_i18n.h"
#include <selinux/selinux.h>
#include <selinux/get_context_list.h>
diff --git a/modules/pam_selinux/pam_selinux_check.c b/modules/pam_selinux/pam_selinux_check.c
index 30526d37..753aa88f 100644
--- a/modules/pam_selinux/pam_selinux_check.c
+++ b/modules/pam_selinux/pam_selinux_check.c
@@ -55,6 +55,8 @@
#include <security/pam_appl.h> /* for PAM functions */
#include <security/pam_misc.h> /* for misc_conv PAM utility function */
+#include "pam_i18n.h"
+
#define SERVICE_NAME "pam_selinux_check" /* the name of this program for PAM */
/* The file containing the context to run
* the scripts under. */
diff --git a/modules/pam_timestamp/pam_timestamp.c b/modules/pam_timestamp/pam_timestamp.c
index edecc052..51fcd592 100644
--- a/modules/pam_timestamp/pam_timestamp.c
+++ b/modules/pam_timestamp/pam_timestamp.c
@@ -72,6 +72,7 @@
#include <security/pam_ext.h>
#include <security/pam_modutil.h>
#include "pam_inline.h"
+#include "pam_i18n.h"
/* The default timeout we use is 5 minutes, which matches the sudo default
* for the timestamp_timeout parameter. */
diff --git a/modules/pam_unix/pam_unix_acct.c b/modules/pam_unix/pam_unix_acct.c
index 7ffcb9e3..befd3c99 100644
--- a/modules/pam_unix/pam_unix_acct.c
+++ b/modules/pam_unix/pam_unix_acct.c
@@ -57,6 +57,7 @@
#include <security/pam_ext.h>
#include <security/pam_modutil.h>
+#include "pam_i18n.h"
#include "pam_cc_compat.h"
#include "support.h"
#include "passverify.h"
diff --git a/modules/pam_unix/pam_unix_passwd.c b/modules/pam_unix/pam_unix_passwd.c
index c3c6ea7a..4a3784a5 100644
--- a/modules/pam_unix/pam_unix_passwd.c
+++ b/modules/pam_unix/pam_unix_passwd.c
@@ -67,6 +67,7 @@
#include <security/pam_modutil.h>
#include "pam_inline.h"
+#include "pam_i18n.h"
#include "pam_cc_compat.h"
#include "md5.h"
#include "support.h"
diff --git a/modules/pam_userdb/pam_userdb.c b/modules/pam_userdb/pam_userdb.c
index 3bcb4c87..40ede6de 100644
--- a/modules/pam_userdb/pam_userdb.c
+++ b/modules/pam_userdb/pam_userdb.c
@@ -41,6 +41,7 @@
#include <security/pam_ext.h>
#include <security/_pam_macros.h>
#include "pam_inline.h"
+#include "pam_i18n.h"
#ifndef HAVE_GDBM_H
# define COND_UNUSED UNUSED