version 1.22, 2005/01/19 13:11:47 |
version 1.22.2.1, 2005/09/04 18:39:57 |
|
|
kbdintctxt->devices = t[len] ? xstrdup(t+len+1) : NULL; |
kbdintctxt->devices = t[len] ? xstrdup(t+len+1) : NULL; |
xfree(t); |
xfree(t); |
debug2("kbdint_next_device: devices %s", kbdintctxt->devices ? |
debug2("kbdint_next_device: devices %s", kbdintctxt->devices ? |
kbdintctxt->devices : "<empty>"); |
kbdintctxt->devices : "<empty>"); |
} while (kbdintctxt->devices && !kbdintctxt->device); |
} while (kbdintctxt->devices && !kbdintctxt->device); |
|
|
return kbdintctxt->device ? 1 : 0; |
return kbdintctxt->device ? 1 : 0; |
|
|
{ |
{ |
KbdintAuthctxt *kbdintctxt; |
KbdintAuthctxt *kbdintctxt; |
char *name, *instr, **prompts; |
char *name, *instr, **prompts; |
int i; |
u_int i, *echo_on; |
u_int *echo_on; |
|
|
|
kbdintctxt = authctxt->kbdintctxt; |
kbdintctxt = authctxt->kbdintctxt; |
if (kbdintctxt->device->query(kbdintctxt->ctxt, |
if (kbdintctxt->device->query(kbdintctxt->ctxt, |
|
|
{ |
{ |
Authctxt *authctxt = ctxt; |
Authctxt *authctxt = ctxt; |
KbdintAuthctxt *kbdintctxt; |
KbdintAuthctxt *kbdintctxt; |
int i, authenticated = 0, res, len; |
int authenticated = 0, res, len; |
u_int nresp; |
u_int i, nresp; |
char **response = NULL, *method; |
char **response = NULL, *method; |
|
|
if (authctxt == NULL) |
if (authctxt == NULL) |