Lines Matching refs:devices
64 KbdintDevice *devices[] = { variable
78 char *devices; member
91 for (i = 0; devices[i] != NULL; i++) in remove_kbdint_device()
92 if (strcmp(devices[i]->name, devname) == 0) { in remove_kbdint_device()
93 for (j = i; devices[j] != NULL; j++) in remove_kbdint_device()
94 devices[j] = devices[j+1]; in remove_kbdint_device()
116 for (i = 0; devices[i]; i++) { in kbdint_alloc()
118 sshbuf_len(b) ? "," : "", devices[i]->name)) != 0) in kbdint_alloc()
122 if ((kbdintctxt->devices = sshbuf_dup_string(b)) == NULL) in kbdint_alloc()
126 kbdintctxt->devices = xstrdup(devs); in kbdint_alloc()
128 debug("kbdint_alloc: devices '%s'", kbdintctxt->devices); in kbdint_alloc()
149 free(kbdintctxt->devices); in kbdint_free()
163 len = kbdintctxt->devices ? in kbdint_next_device()
164 strcspn(kbdintctxt->devices, ",") : 0; in kbdint_next_device()
168 for (i = 0; devices[i]; i++) { in kbdint_next_device()
171 "keyboard-interactive", devices[i]->name)) in kbdint_next_device()
173 if (strncmp(kbdintctxt->devices, devices[i]->name, in kbdint_next_device()
175 kbdintctxt->device = devices[i]; in kbdint_next_device()
179 t = kbdintctxt->devices; in kbdint_next_device()
180 kbdintctxt->devices = t[len] ? xstrdup(t+len+1) : NULL; in kbdint_next_device()
182 debug2("kbdint_next_device: devices %s", kbdintctxt->devices ? in kbdint_next_device()
183 kbdintctxt->devices : "<empty>"); in kbdint_next_device()
184 } while (kbdintctxt->devices && !kbdintctxt->device); in kbdint_next_device()
229 kbdintctxt->devices ? kbdintctxt->devices : "<empty>"); in auth2_challenge_start()
377 devices[n++] = &mm_bsdauth_device; in privsep_challenge_enable()
380 devices[n++] = &mm_sshpam_device; in privsep_challenge_enable()