version 1.34, 2008/12/09 04:32:22 |
version 1.35, 2012/12/02 20:34:09 |
|
|
KbdintAuthctxt *kbdintctxt; |
KbdintAuthctxt *kbdintctxt; |
int authenticated = 0, res; |
int authenticated = 0, res; |
u_int i, nresp; |
u_int i, nresp; |
char **response = NULL, *method; |
char *devicename = NULL, **response = NULL; |
|
|
if (authctxt == NULL) |
if (authctxt == NULL) |
fatal("input_userauth_info_response: no authctxt"); |
fatal("input_userauth_info_response: no authctxt"); |
|
|
/* Failure! */ |
/* Failure! */ |
break; |
break; |
} |
} |
|
devicename = kbdintctxt->device->name; |
xasprintf(&method, "keyboard-interactive/%s", kbdintctxt->device->name); |
|
|
|
if (!authctxt->postponed) { |
if (!authctxt->postponed) { |
if (authenticated) { |
if (authenticated) { |
auth2_challenge_stop(authctxt); |
auth2_challenge_stop(authctxt); |
|
|
auth2_challenge_start(authctxt); |
auth2_challenge_start(authctxt); |
} |
} |
} |
} |
userauth_finish(authctxt, authenticated, method); |
userauth_finish(authctxt, authenticated, "keyboard-interactive", |
xfree(method); |
devicename); |
} |
} |
|
|
void |
void |