summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2011-07-03 20:34:14 +0000
committerArthur de Jong <arthur@arthurdejong.org>2011-07-03 20:34:14 +0000
commite8d8d23fc7fabfcf94ddf016b401b6d1f458937e (patch)
tree0fcc7e1413042996d44165db259c6f8627636378 /compat
parent3c67195a4cf23baf355596df0364ee782b833079 (diff)
provide PAM_AUTHTOK_RECOVERY_ERR for systems with only PAM_AUTHTOK_RECOVER_ERR
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1479 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'compat')
-rw-r--r--compat/pam_compat.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/compat/pam_compat.h b/compat/pam_compat.h
index b4b5397..b4923f6 100644
--- a/compat/pam_compat.h
+++ b/compat/pam_compat.h
@@ -37,6 +37,14 @@
#include <security/pam_modutil.h>
#endif /* HAVE_SECURITY_PAM_MODUTIL_H */
+/* some systems define PAM_AUTHTOK_RECOVER_ERR but not
+ 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 */
+#endif /* not PAM_AUTHTOK_RECOVERY_ERR */
+
/* define our own replacement pam_get_authtok() if it wasn't found */
#ifndef HAVE_PAM_GET_AUTHTOK
int pam_get_authtok(pam_handle_t *pamh,int item,const char **authtok,const char *prompt);