summaryrefslogtreecommitdiff
path: root/modules/pam_pwhistory/pam_pwhistory.c
diff options
context:
space:
mode:
authorSteve Langasek <vorlon@debian.org>2019-01-22 15:01:39 -0800
committerSteve Langasek <vorlon@debian.org>2019-01-22 15:02:03 -0800
commit5cd7bb4511a7c2b355a615f19a9eca193320aa3e (patch)
treeceb3e40947d1f0f4712f473e410494177d5763e0 /modules/pam_pwhistory/pam_pwhistory.c
parentcfa575497a113d8da1a2c79ef028b5c9648dc136 (diff)
parentf00afb1ef201b2eef7f9ddbe5a0c6ca802cf49bb (diff)
Merge upstream version 1.3.0
Diffstat (limited to 'modules/pam_pwhistory/pam_pwhistory.c')
-rw-r--r--modules/pam_pwhistory/pam_pwhistory.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/modules/pam_pwhistory/pam_pwhistory.c b/modules/pam_pwhistory/pam_pwhistory.c
index 654edd39..3efb0ca5 100644
--- a/modules/pam_pwhistory/pam_pwhistory.c
+++ b/modules/pam_pwhistory/pam_pwhistory.c
@@ -106,7 +106,7 @@ parse_option (pam_handle_t *pamh, const char *argv, options_t *options)
/* This module saves the current crypted password in /etc/security/opasswd
and then compares the new password with all entries in this file. */
-PAM_EXTERN int
+int
pam_sm_chauthtok (pam_handle_t *pamh, int flags, int argc, const char **argv)
{
struct passwd *pwd;
@@ -234,17 +234,3 @@ pam_sm_chauthtok (pam_handle_t *pamh, int flags, int argc, const char **argv)
return PAM_SUCCESS;
}
-
-
-#ifdef PAM_STATIC
-/* static module data */
-struct pam_module _pam_pwhistory_modstruct = {
- "pam_pwhistory",
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- pam_sm_chauthtok
-};
-#endif