summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
Diffstat (limited to 'compat')
-rw-r--r--compat/pam_compat.h7
-rw-r--r--compat/pam_get_authtok.c9
2 files changed, 4 insertions, 12 deletions
diff --git a/compat/pam_compat.h b/compat/pam_compat.h
index b4923f6..4109b77 100644
--- a/compat/pam_compat.h
+++ b/compat/pam_compat.h
@@ -37,12 +37,13 @@
#include <security/pam_modutil.h>
#endif /* HAVE_SECURITY_PAM_MODUTIL_H */
-/* some systems define PAM_AUTHTOK_RECOVER_ERR but not
- PAM_AUTHTOK_RECOVERY_ERR */
+/* find value of PAM_AUTHTOK_RECOVERY_ERR */
#ifndef PAM_AUTHTOK_RECOVERY_ERR
#ifdef PAM_AUTHTOK_RECOVER_ERR
#define PAM_AUTHTOK_RECOVERY_ERR PAM_AUTHTOK_RECOVER_ERR
-#endif /* PAM_AUTHTOK_RECOVER_ERR */
+#else
+#define PAM_AUTHTOK_RECOVERY_ERR 21 /* not defined anywhere */
+#endif
#endif /* not PAM_AUTHTOK_RECOVERY_ERR */
/* define our own replacement pam_get_authtok() if it wasn't found */
diff --git a/compat/pam_get_authtok.c b/compat/pam_get_authtok.c
index a2f3b9a..17b97ad 100644
--- a/compat/pam_get_authtok.c
+++ b/compat/pam_get_authtok.c
@@ -35,15 +35,6 @@
/* warning: this version assumes that try_first_pass is specified */
-/* find value of PAM_AUTHTOK_RECOVERY_ERR */
-#ifndef PAM_AUTHTOK_RECOVERY_ERR
-#ifdef PAM_AUTHTOK_RECOVER_ERR
-#define PAM_AUTHTOK_RECOVERY_ERR PAM_AUTHTOK_RECOVER_ERR
-#else
-#define PAM_AUTHTOK_RECOVERY_ERR 21 /* not defined anywhere */
-#endif
-#endif
-
int pam_get_authtok(pam_handle_t *pamh,int item,const char **authtok,const char *prompt)
{
int rc;