Lines Matching refs:authctxt
53 static void do_pam_kbdint(Authctxt *authctxt);
56 auth2_pam(Authctxt *authctxt) in auth2_pam() argument
58 if (authctxt->user == NULL) in auth2_pam()
60 if (authctxt->method == NULL) in auth2_pam()
63 conv2.appdata_ptr = authctxt; in auth2_pam()
64 new_start_pam(authctxt, &conv2); in auth2_pam()
66 authctxt->method->method_data = NULL; /* freed in the conv func */ in auth2_pam()
79 do_pam_kbdint(authctxt); in auth2_pam()
85 do_pam_kbdint(Authctxt *authctxt) in do_pam_kbdint() argument
88 pam_handle_t *pamh = authctxt->pam->h; in do_pam_kbdint()
105 if (authctxt->valid && authctxt->pw != NULL) { in do_pam_kbdint()
131 (void) setreuid(authctxt->pw->pw_uid, -1); in do_pam_kbdint()
150 audit_sshd_chauthtok(retval, authctxt->pw->pw_uid, in do_pam_kbdint()
151 authctxt->pw->pw_gid); in do_pam_kbdint()
161 authctxt->pam->state |= PAM_S_DONE_ACCT_MGMT; in do_pam_kbdint()
163 retval = finish_userauth_do_pam(authctxt); in do_pam_kbdint()
172 authctxt->method->authenticated = 1; in do_pam_kbdint()
173 debug2("kbd-int: success (pam->state == %x)", authctxt->pam->state); in do_pam_kbdint()
182 if (authctxt->pam->h != pamh) { in do_pam_kbdint()
190 authctxt->method->abandoned = 1; in do_pam_kbdint()
200 if (authctxt->method->abandons) in do_pam_kbdint()
201 authctxt->method->abandons--; in do_pam_kbdint()
202 if (authctxt->method->attempts) in do_pam_kbdint()
203 authctxt->method->attempts--; in do_pam_kbdint()
207 authctxt->pam->last_pam_retval = retval; in do_pam_kbdint()
224 Authctxt *authctxt = (Authctxt *)appdata_ptr; in do_pam_conv_kbd_int() local
226 if (!authctxt || !authctxt->method) { in do_pam_conv_kbd_int()
278 authctxt->method->method_data = (void *) conv_ctxt; in do_pam_conv_kbd_int()
323 authctxt->unwind_dispatch_loop = 1; in do_pam_conv_kbd_int()
349 Authctxt *authctxt = ctxt; in input_userauth_info_response_pam() local
354 if (authctxt == NULL) in input_userauth_info_response_pam()
412 kbdint_pam_abandon_chk(Authctxt *authctxt, Authmethod *method)
425 kbdint_pam_abandon(Authctxt *authctxt, Authmethod *method) in kbdint_pam_abandon() argument
456 authctxt->pam->h = NULL; /* Let the conv function cleanup */ in kbdint_pam_abandon()