• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/OpenSSH-189/openssh/

Lines Matching defs:authctxt

186  * try challenge-response, set authctxt->postponed if we have to
190 auth2_challenge(Authctxt *authctxt, char *devs)
193 authctxt->user ? authctxt->user : "<nouser>",
196 if (authctxt->user == NULL || !devs)
198 if (authctxt->kbdintctxt == NULL)
199 authctxt->kbdintctxt = kbdint_alloc(devs);
200 return auth2_challenge_start(authctxt);
205 auth2_challenge_stop(Authctxt *authctxt)
209 if (authctxt->kbdintctxt != NULL) {
210 kbdint_free(authctxt->kbdintctxt);
211 authctxt->kbdintctxt = NULL;
215 /* side effect: sets authctxt->postponed if a reply was sent*/
217 auth2_challenge_start(Authctxt *authctxt)
219 KbdintAuthctxt *kbdintctxt = authctxt->kbdintctxt;
225 auth2_challenge_stop(authctxt);
231 if ((kbdintctxt->ctxt = kbdintctxt->device->init_ctx(authctxt)) == NULL) {
232 auth2_challenge_stop(authctxt);
235 if (send_userauth_info_request(authctxt) == 0) {
236 auth2_challenge_stop(authctxt);
242 authctxt->postponed = 1;
247 send_userauth_info_request(Authctxt *authctxt)
253 kbdintctxt = authctxt->kbdintctxt;
282 Authctxt *authctxt = ctxt;
289 if (authctxt == NULL)
290 fatal("input_userauth_info_response: no authctxt");
291 kbdintctxt = authctxt->kbdintctxt;
297 authctxt->postponed = 0; /* reset */
322 authenticated = authctxt->valid ? 1 : 0;
326 if (send_userauth_info_request(authctxt) == 1)
327 authctxt->postponed = 1;
334 if (!authctxt->postponed) {
336 auth2_challenge_stop(authctxt);
339 /* may set authctxt->postponed */
340 auth2_challenge_start(authctxt);
343 userauth_finish(authctxt, authenticated, "keyboard-interactive",