summaryrefslogtreecommitdiff
path: root/auth2.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth2.c')
-rw-r--r--auth2.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/auth2.c b/auth2.c
index 46bf07c80..8e8edf920 100644
--- a/auth2.c
+++ b/auth2.c
@@ -400,10 +400,15 @@ userauth_kbdint(Authctxt *authctxt)
400 packet_done(); 400 packet_done();
401 401
402 debug("keyboard-interactive language %s devs %s", lang, devs); 402 debug("keyboard-interactive language %s devs %s", lang, devs);
403#ifdef USE_PAM
404 if (authenticated == 0)
405 authenticated = auth2_pam(authctxt);
406#endif
403#ifdef SKEY 407#ifdef SKEY
404 /* XXX hardcoded, we should look at devs */ 408 /* XXX hardcoded, we should look at devs */
405 if (options.skey_authentication != 0) 409 if (authenticated == 0)
406 authenticated = auth2_skey(authctxt); 410 if (options.skey_authentication != 0)
411 authenticated = auth2_skey(authctxt);
407#endif 412#endif
408 xfree(lang); 413 xfree(lang);
409 xfree(devs); 414 xfree(devs);