From e8d8d23fc7fabfcf94ddf016b401b6d1f458937e Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sun, 3 Jul 2011 20:34:14 +0000 Subject: 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 --- compat/pam_compat.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'compat') 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 #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); -- cgit v1.2.2