summaryrefslogtreecommitdiff
path: root/openbsd-compat/xcrypt.c
diff options
context:
space:
mode:
authortim <tim>2005-08-31 16:59:49 +0000
committertim <tim>2005-08-31 16:59:49 +0000
commitb321059f86b58b2dd3906308c94e9653869a9ae9 (patch)
tree9a69b292e0cc769e879e00634f2a7bf2675fcedf /openbsd-compat/xcrypt.c
parent75bbf44f08d9413198c24a3b8e1b39d488711bb0 (diff)
downloadopenssh-b321059f86b58b2dd3906308c94e9653869a9ae9.tar.gz
- (tim) [configure.ac auth.c defines.h session.c openbsd-compat/port-uw.c
openbsd-compat/port-uw.h openbsd-compat/xcrypt.c] libiaf cleanup. Disable libiaf bits for OpenServer6. Free memory allocated by ia_get_logpwd(). Feedback and OK dtucker@
Diffstat (limited to 'openbsd-compat/xcrypt.c')
-rw-r--r--openbsd-compat/xcrypt.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/openbsd-compat/xcrypt.c b/openbsd-compat/xcrypt.c
index 45320327..9afa0b9f 100644
--- a/openbsd-compat/xcrypt.c
+++ b/openbsd-compat/xcrypt.c
@@ -91,12 +91,13 @@ shadow_pw(struct passwd *pw)
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
+
+#if defined(HAVE_LIBIAF) && !defined(BROKEN_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)