aboutsummaryrefslogtreecommitdiff
path: root/pam_fshadow
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2006-09-05 21:34:52 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2006-09-05 21:34:52 +0000
commitbd863c9bbdc7e73ef6020558519da032df38d59f (patch)
treecce5bdd03564fe5d797a5875d4f8a8615c3afdf2 /pam_fshadow
parentdbc191b52bbe6e3741e8bd8f708f69e2a6ead76b (diff)
downloadpam-modules-bd863c9bbdc7e73ef6020558519da032df38d59f.tar.gz
pam-modules-bd863c9bbdc7e73ef6020558519da032df38d59f.tar.bz2
Include <common.c>
git-svn-id: file:///svnroot/pam-modules/trunk@30 56984be4-0537-0410-a56c-fcb268c96130
Diffstat (limited to 'pam_fshadow')
-rw-r--r--pam_fshadow/pam_fshadow.c36
1 files changed, 3 insertions, 33 deletions
diff --git a/pam_fshadow/pam_fshadow.c b/pam_fshadow/pam_fshadow.c
index b385476..cddaf3b 100644
--- a/pam_fshadow/pam_fshadow.c
+++ b/pam_fshadow/pam_fshadow.c
@@ -38,7 +38,8 @@
#define PAM_SM_ACCOUNT
#include <security/pam_modules.h>
-#define XSTRDUP(s) (s) ? strdup(s) : NULL
+
+#include <common.c>
/* some syslogging */
@@ -101,37 +102,6 @@ _pam_parse(int argc, const char **argv)
return cntl_flags;
}
-#define PAM_OVERWRITE(s) \
- do { \
- register char *p; \
- if ((p = s) != NULL) \
- while (*p) *p++ = 0; \
- } while (0)
-
-#define PAM_DROP_REPLY(reply, nrepl) \
- do { \
- int i; \
- for (i=0; i<nrepl; i++) { \
- PAM_OVERWRITE(reply[i].resp); \
- free(reply[i].resp); \
- } \
- if (reply) \
- free(reply); \
- } while (0)
-
-static void
-_pam_delete(char *x)
-{
- PAM_OVERWRITE(x);
- free(x);
-}
-
-static void
-_cleanup_string(pam_handle_t *pamh, void *x, int error_status)
-{
- _pam_delete(x);
-}
-
static int
converse(pam_handle_t *pamh,
int nargs,
@@ -428,7 +398,7 @@ int pam_sm_acct_mgmt(pam_handle_t *pamh, int flags,
/* static module data */
struct pam_module _pam_fshadow_modstruct = {
- "pam_userdb",
+ "pam_fshadow",
pam_sm_authenticate,
pam_sm_setcred,
NULL,

Return to:

Send suggestions and report system problems to the System administrator.