• Home
  • History
  • Annotate
  • Raw
  • Download

Lines Matching refs:authctxt

169 static Authctxt *authctxt;  variable
345 authctxt = _authctxt; in monitor_child_preauth()
346 memset(authctxt, 0, sizeof(*authctxt)); in monitor_child_preauth()
348 authctxt->loginmsg = &loginmsg; in monitor_child_preauth()
375 !auth2_update_methods_lists(authctxt, in monitor_child_preauth()
388 if (authctxt->pw->pw_uid == 0 && in monitor_child_preauth()
405 auth_log(authctxt, authenticated, partial, in monitor_child_preauth()
408 authctxt->failures++; in monitor_child_preauth()
412 if (!authctxt->valid) in monitor_child_preauth()
418 __func__, authctxt->user); in monitor_child_preauth()
794 if (authctxt->attempt++ != 0) in mm_answer_pwnamallow()
801 authctxt->user = xstrdup(username); in mm_answer_pwnamallow()
809 authctxt->pw = fakepw(); in mm_answer_pwnamallow()
814 authctxt->pw = pwent; in mm_answer_pwnamallow()
815 authctxt->valid = 1; in mm_answer_pwnamallow()
847 if (compat20 && auth2_setup_methods_lists(authctxt) != 0) { in mm_answer_pwnamallow()
893 authctxt->service = buffer_get_string(m, NULL); in mm_answer_authserv()
894 authctxt->style = buffer_get_string(m, NULL); in mm_answer_authserv()
896 __func__, authctxt->service, authctxt->style); in mm_answer_authserv()
898 if (strlen(authctxt->style) == 0) { in mm_answer_authserv()
899 free(authctxt->style); in mm_answer_authserv()
900 authctxt->style = NULL; in mm_answer_authserv()
918 auth_password(authctxt, passwd); in mm_answer_authpassword()
952 success = bsdauth_query(authctxt, &name, &infotxt, &numprompts, in mm_answer_bsdauthquery()
979 if (authctxt->as == 0) in mm_answer_bsdauthrespond()
984 auth_userresponse(authctxt->as, response, 0); in mm_answer_bsdauthrespond()
985 authctxt->as = NULL; in mm_answer_bsdauthrespond()
1013 success = _compat_skeychallenge(&skey, authctxt->user, challenge, in mm_answer_skeyquery()
1036 authctxt->valid && in mm_answer_skeyrespond()
1037 skey_haskey(authctxt->pw->pw_name) == 0 && in mm_answer_skeyrespond()
1038 skey_passcheck(authctxt->pw->pw_name, response) != -1); in mm_answer_skeyrespond()
1061 start_pam(authctxt); in mm_answer_pam_start()
1093 sshpam_ctxt = (sshpam_device.init_ctx)(authctxt); in mm_answer_pam_init_ctx()
1213 if (key != NULL && authctxt->valid) { in mm_answer_keyallowed()
1222 !auth2_userkey_already_used(authctxt, key) && in mm_answer_keyallowed()
1225 user_key_allowed(authctxt->pw, key, in mm_answer_keyallowed()
1227 pubkey_auth_info(authctxt, key, NULL); in mm_answer_keyallowed()
1237 hostbased_key_allowed(authctxt->pw, in mm_answer_keyallowed()
1239 pubkey_auth_info(authctxt, key, in mm_answer_keyallowed()
1248 auth_rhosts_rsa_key_allowed(authctxt->pw, in mm_answer_keyallowed()
1275 auth_log(authctxt, 0, 0, auth_method, NULL); in mm_answer_keyallowed()
1326 xasprintf(&userstyle, "%s%s%s", authctxt->user, in monitor_valid_userblob()
1327 authctxt->style ? ":" : "", in monitor_valid_userblob()
1328 authctxt->style ? authctxt->style : ""); in monitor_valid_userblob()
1378 xasprintf(&userstyle, "%s%s%s", authctxt->user, in monitor_valid_hostbasedblob()
1379 authctxt->style ? ":" : "", in monitor_valid_hostbasedblob()
1380 authctxt->style ? authctxt->style : ""); in monitor_valid_hostbasedblob()
1458 auth2_record_userkey(authctxt, key); in mm_answer_keyverify()
1529 s->authctxt = authctxt; in mm_answer_pty()
1530 s->pw = authctxt->pw; in mm_answer_pty()
1535 pty_setowner(authctxt->pw, s->tty); in mm_answer_pty()
1544 mm_record_login(s, authctxt->pw); in mm_answer_pty()
1660 if (options.rsa_authentication && authctxt->valid) { in mm_answer_rsa_keyallowed()
1664 allowed = auth_rsa_key_allowed(authctxt->pw, client_n, &key); in mm_answer_rsa_keyallowed()
1704 if (!authctxt->valid) in mm_answer_rsa_challenge()
1743 if (!authctxt->valid) in mm_answer_rsa_response()
2052 authenticated = authctxt->valid && ssh_gssapi_userok(authctxt->user); in mm_answer_gss_userok()