summaryrefslogtreecommitdiff
path: root/auth2.c
diff options
context:
space:
mode:
authorKevin Steves <stevesk@pobox.com>2002-04-04 19:02:28 +0000
committerKevin Steves <stevesk@pobox.com>2002-04-04 19:02:28 +0000
commite683e7643997118ac51b18c073a6aba410c0cc3c (patch)
treef2a98c2979198a89e00eb5cdd3d6fbf0fb986377 /auth2.c
parentaf40bc6a72013e9eec74ec99e21dab9342ac9880 (diff)
- (stevesk) [auth-pam.c auth-pam.h auth-passwd.c auth-sia.c auth-sia.h
auth1.c auth2.c] PAM, OSF_SIA password auth cleanup; from djm.
Diffstat (limited to 'auth2.c')
-rw-r--r--auth2.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/auth2.c b/auth2.c
index 3377fde8b..eadaa7135 100644
--- a/auth2.c
+++ b/auth2.c
@@ -329,13 +329,7 @@ userauth_none(Authctxt *authctxt)
329 if (check_nt_auth(1, authctxt->pw) == 0) 329 if (check_nt_auth(1, authctxt->pw) == 0)
330 return(0); 330 return(0);
331#endif 331#endif
332#ifdef USE_PAM
333 return auth_pam_password(authctxt->pw, "");
334#elif defined(HAVE_OSF_SIA)
335 return 0;
336#else /* !HAVE_OSF_SIA && !USE_PAM */
337 return PRIVSEP(auth_password(authctxt, "")); 332 return PRIVSEP(auth_password(authctxt, ""));
338#endif /* USE_PAM */
339} 333}
340 334
341static int 335static int
@@ -354,13 +348,7 @@ userauth_passwd(Authctxt *authctxt)
354#ifdef HAVE_CYGWIN 348#ifdef HAVE_CYGWIN
355 check_nt_auth(1, authctxt->pw) && 349 check_nt_auth(1, authctxt->pw) &&
356#endif 350#endif
357#ifdef USE_PAM
358 auth_pam_password(authctxt->pw, password) == 1)
359#elif defined(HAVE_OSF_SIA)
360 auth_sia_password(authctxt->user, password) == 1)
361#else /* !USE_PAM && !HAVE_OSF_SIA */
362 PRIVSEP(auth_password(authctxt, password)) == 1) 351 PRIVSEP(auth_password(authctxt, password)) == 1)
363#endif /* USE_PAM */
364 authenticated = 1; 352 authenticated = 1;
365 memset(password, 0, len); 353 memset(password, 0, len);
366 xfree(password); 354 xfree(password);