aboutsummaryrefslogtreecommitdiff
path: root/pam_pwdfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'pam_pwdfile.c')
-rw-r--r--pam_pwdfile.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/pam_pwdfile.c b/pam_pwdfile.c
index 88e9368..3d91d3d 100644
--- a/pam_pwdfile.c
+++ b/pam_pwdfile.c
@@ -1,12 +1,12 @@
/* pam_pwdfile.c copyright 1999 by Charl P. Botha <cpbotha@ieee.org>
*
- * $Id: pam_pwdfile.c,v 1.9 2000-11-25 16:55:43 cpbotha Exp $
+ * $Id: pam_pwdfile.c,v 1.10 2001-04-17 21:16:12 cpbotha Exp $
*
* pam authentication module that can be pointed at any username/crypted
* text file so that pam using application can use an alternate set of
* passwords than specified in system password database
*
- * version 0.6
+ * version 0.7
*
* Copyright (c) Charl P. Botha, 1999. All rights reserved
*
@@ -42,12 +42,7 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef LINUX
-#include <security/pam_appl.h>
-#endif /* LINUX */
-
-#define PAM_SM_AUTH
-#include <security/pam_modules.h>
+#include <security/_pam_aconf.h>
#include <syslog.h>
#include <stdarg.h>
@@ -59,10 +54,13 @@
#include <sys/stat.h>
#include <sys/wait.h>
#include <sys/file.h>
-
-#define _XOPEN_SOURCE
#include <unistd.h>
+#include <security/pam_appl.h>
+
+#define PAM_SM_AUTH
+#include <security/pam_modules.h>
+
/* unistd.h does not declare this as it should */
extern char *crypt(const char *key, const char *salt);
@@ -72,7 +70,6 @@ extern char *crypt(const char *key, const char *salt);
#define CRYPTED_DESPWD_LEN 13
#define CRYPTED_MD5PWD_LEN 34
-
#ifdef DEBUG
# define D(a) a;
#else