diff options
Diffstat (limited to 'auth2.c')
-rw-r--r-- | auth2.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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); |