• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/crypto/openssh/

Lines Matching defs:authctxt

108 extern struct sshauthopt *auth_opts; /* XXX move to permanent ssh->authctxt? */
160 static Authctxt *authctxt;
288 authctxt = _authctxt;
289 memset(authctxt, 0, sizeof(*authctxt));
290 ssh->authctxt = authctxt;
292 authctxt->loginmsg = loginmsg;
304 auth2_authctxt_reset_info(authctxt);
311 !auth2_update_methods_lists(authctxt,
324 if (authctxt->pw->pw_uid == 0 &&
344 auth_log(authctxt, authenticated, partial,
347 authctxt->failures++;
349 auth2_update_session_info(authctxt,
355 if (!authctxt->valid)
361 __func__, authctxt->user);
362 ssh->authctxt = NULL;
363 ssh_packet_set_log_preamble(ssh, "user %s", authctxt->user);
771 if (authctxt->attempt++ != 0)
779 authctxt->user = xstrdup(username);
788 authctxt->pw = fakepw();
793 authctxt->pw = pwent;
794 authctxt->valid = 1;
802 authctxt->valid ? "authenticating" : "invalid ", authctxt->user);
826 if (auth2_setup_methods_lists(authctxt) != 0) {
872 if ((r = sshbuf_get_cstring(m, &authctxt->service, NULL)) != 0 ||
873 (r = sshbuf_get_cstring(m, &authctxt->style, NULL)) != 0)
876 __func__, authctxt->service, authctxt->style);
878 if (strlen(authctxt->style) == 0) {
879 free(authctxt->style);
880 authctxt->style = NULL;
937 success = bsdauth_query(authctxt, &name, &infotxt, &numprompts,
969 if (authctxt->as == NULL)
975 auth_userresponse(authctxt->as, response, 0);
976 authctxt->as = NULL;
1001 start_pam(authctxt);
1044 sshpam_ctxt = (sshpam_device.init_ctx)(authctxt);
1178 if (key != NULL && authctxt->valid) {
1189 if (auth2_key_already_used(authctxt, key))
1194 allowed = user_key_allowed(ssh, authctxt->pw, key,
1201 if (auth2_key_already_used(authctxt, key))
1206 allowed = hostbased_key_allowed(authctxt->pw,
1208 auth2_record_info(authctxt,
1220 (key == NULL || !authctxt->valid) ? "invalid" : sshkey_type(key),
1223 auth2_record_key(authctxt, 0, key);
1238 auth_log(authctxt, 0, 0, auth_method, NULL);
1295 xasprintf(&userstyle, "%s%s%s", authctxt->user,
1296 authctxt->style ? ":" : "",
1297 authctxt->style ? authctxt->style : "");
1352 xasprintf(&userstyle, "%s%s%s", authctxt->user,
1353 authctxt->style ? ":" : "",
1354 authctxt->style ? authctxt->style : "");
1445 auth2_record_key(authctxt, ret == 0, key);
1518 s->authctxt = authctxt;
1519 s->pw = authctxt->pw;
1524 pty_setowner(authctxt->pw, s->tty);
1534 mm_record_login(s, authctxt->pw);
1894 authenticated = authctxt->valid && ssh_gssapi_userok(authctxt->user);
1906 auth2_record_info(authctxt, "%s", displayname);