#include "includes.h"
+#include <sys/types.h>
+#include <unistd.h>
+#include <pwd.h>
+
# ifdef HAVE_CRYPT_H
# include <crypt.h>
# endif
struct spwd *spw = getspnam(pw->pw_name);
if (spw != NULL)
-#ifdef HAVE_LIBIAF
- pw_password = get_iaf_password(pw);
-#else
pw_password = spw->sp_pwdp;
-#endif /* HAVE_LIBIAF */
# endif
+
+#ifdef USE_LIBIAF
+ return(get_iaf_password(pw));
+#endif
+
# if defined(HAVE_GETPWANAM) && !defined(DISABLE_SHADOW)
struct passwd_adjunct *spw;
if (issecure() && (spw = getpwanam(pw->pw_name)) != NULL)