diff options
Diffstat (limited to 'auth2.c')
-rw-r--r-- | auth2.c | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -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 | ||
341 | static int | 335 | static 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); |